Skip to content

Instantly share code, notes, and snippets.

@cmcintosh
Created January 27, 2015 04:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmcintosh/6a15a3357f363cc37422 to your computer and use it in GitHub Desktop.
Save cmcintosh/6a15a3357f363cc37422 to your computer and use it in GitHub Desktop.
<?php
/**
* @file
* Definition of Drupal\comment\CommentForm.
*/
namespace Drupal\comment_timer;
use Drupal\comment;
use Drupal\Component\Utility\String;
use Drupal\Component\Utility\Unicode;
use Drupal\Core\Datetime\DrupalDateTime;
use Drupal\Core\Entity\ContentEntityForm;
use Drupal\Core\Entity\EntityManagerInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Language\Language;
use Drupal\Core\Language\LanguageInterface;
use Drupal\Core\Session\AccountInterface;
use Drupal\language\Entity\ContentLanguageSettings;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
* Base for controller for comment forms.
*/
class CommentTimerForm extends CommentForm {
public function form(array $form, FormStateInterface $form_state) {
$form['test'] = array(
'#type' => 'textfield',
'#title' => t('HELLO WORLD!!!')
);
return $form;
// return parent::form($form, $form_state);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment