CommentInterface::getCreatedTime

public CommentInterface::getCreatedTime() Returns the time that the comment was created. Return value int The timestamp of when the comment was created. File core/modules/comment/src/CommentInterface.php, line 181 Class CommentInterface Provides an interface defining a comment entity. Namespace Drupal\comment Code public function getCreatedTime();

CommentInterface::getCommentedEntityTypeId

public CommentInterface::getCommentedEntityTypeId() Returns the type of the entity to which the comment is attached. Return value string An entity type. File core/modules/comment/src/CommentInterface.php, line 62 Class CommentInterface Provides an interface defining a comment entity. Namespace Drupal\comment Code public function getCommentedEntityTypeId();

CommentInterface::getCommentedEntityId

public CommentInterface::getCommentedEntityId() Returns the ID of the entity to which the comment is attached. Return value int The ID of the entity to which the comment is attached. File core/modules/comment/src/CommentInterface.php, line 54 Class CommentInterface Provides an interface defining a comment entity. Namespace Drupal\comment Code public function getCommentedEntityId();

CommentInterface::getCommentedEntity

public CommentInterface::getCommentedEntity() Returns the entity to which the comment is attached. Return value \Drupal\Core\Entity\FieldableEntityInterface The entity on which the comment is attached. File core/modules/comment/src/CommentInterface.php, line 46 Class CommentInterface Provides an interface defining a comment entity. Namespace Drupal\comment Code public function getCommentedEntity();

CommentInterface::getAuthorName

public CommentInterface::getAuthorName() Returns the comment author's name. For anonymous authors, this is the value as typed in the comment form. Return value string The name of the comment author. File core/modules/comment/src/CommentInterface.php, line 110 Class CommentInterface Provides an interface defining a comment entity. Namespace Drupal\comment Code public function getAuthorName();

CommentInterface::getAuthorEmail

public CommentInterface::getAuthorEmail() Returns the comment author's email address. For anonymous authors, this is the value as typed in the comment form. Return value string The email address of the author of the comment. File core/modules/comment/src/CommentInterface.php, line 131 Class CommentInterface Provides an interface defining a comment entity. Namespace Drupal\comment Code public function getAuthorEmail();

CommentInterface

Provides an interface defining a comment entity. Hierarchy interface \Drupal\Core\Entity\ContentEntityInterface extends \Traversable; interface \Drupal\Core\Entity\EntityChangedInterface; interface \Drupal\user\EntityOwnerInterfaceinterface \Drupal\comment\CommentInterface File core/modules/comment/src/CommentInterface.php, line 12 Namespace Drupal\comment Members Name Modifiers Type Description AccessibleInterface::access public function Checks data value access. Cac

CommentForm::__construct

public CommentForm::__construct(EntityManagerInterface $entity_manager, AccountInterface $current_user, RendererInterface $renderer) Constructs a new CommentForm. Parameters \Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager service. \Drupal\Core\Session\AccountInterface $current_user: The current user. \Drupal\Core\Render\RendererInterface $renderer: The renderer. Overrides ContentEntityForm::__construct File core/modules/comment/src/CommentForm.php, line 57 Cla

CommentForm::save

public CommentForm::save(array $form, FormStateInterface $form_state) Form submission handler for the 'save' action. Normally this method should be overridden to provide specific messages to the user and redirect the form after the entity has been saved. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value int Either SAVED_NEW or SAVED_UPDATED, depending on the operation

CommentForm::preview

public CommentForm::preview(array &$form, FormStateInterface $form_state) Form submission handler for the 'preview' action. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. File core/modules/comment/src/CommentForm.php, line 338 Class CommentForm Base handler for comment forms. Namespace Drupal\comment Code public function preview(array &$form, FormStateInterface