Created
January 27, 2015 04:41
-
-
Save cmcintosh/6a15a3357f363cc37422 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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