CommentTypeListBuilder::getDefaultOperations

public CommentTypeListBuilder::getDefaultOperations(EntityInterface $entity) Gets this list's default operations. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity the operations are for. Return value array The array structure is identical to the return value of self::getOperations(). Overrides ConfigEntityListBuilder::getDefaultOperations File core/modules/comment/src/CommentTypeListBuilder.php, line 18 Class CommentTypeListBuilder Defines a class to build a listing of

CommentTypeListBuilder::buildRow

public CommentTypeListBuilder::buildRow(EntityInterface $entity) Builds a row for an entity in the entity listing. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity for this row of the list. Return value array A render array structure of fields for this entity. Overrides EntityListBuilder::buildRow See also \Drupal\Core\Entity\EntityListBuilder::render() File core/modules/comment/src/CommentTypeListBuilder.php, line 40 Class CommentTypeListBuilder Defines a class to bui

CommentTypeListBuilder::buildHeader

public CommentTypeListBuilder::buildHeader() Builds the header row for the entity listing. Return value array A render array structure of header strings. Overrides EntityListBuilder::buildHeader See also \Drupal\Core\Entity\EntityListBuilder::render() File core/modules/comment/src/CommentTypeListBuilder.php, line 31 Class CommentTypeListBuilder Defines a class to build a listing of comment type entities. Namespace Drupal\comment Code public function buildHeader() { $header['type']

CommentTypeListBuilder

Defines a class to build a listing of comment type entities. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityListBuilder implements EntityHandlerInterface, EntityListBuilderInterfaceclass \Drupal\Core\Config\Entity\ConfigEntityListBuilderclass \Drupal\comment\CommentTypeListBuilder See also \Drupal\comment\Entity\CommentType File core/modules/comment/src/CommentTypeListBuilder.php, line 13 N

CommentTypeInterface::setDescription

public CommentTypeInterface::setDescription($description) Sets the description of the comment type. Parameters string $description: The new description. Return value $this File core/modules/comment/src/CommentTypeInterface.php, line 28 Class CommentTypeInterface Provides an interface defining a comment type entity. Namespace Drupal\comment Code public function setDescription($description);

CommentTypeInterface::getTargetEntityTypeId

public CommentTypeInterface::getTargetEntityTypeId() Gets the target entity type id for this comment type. Return value string The target entity type id. File core/modules/comment/src/CommentTypeInterface.php, line 36 Class CommentTypeInterface Provides an interface defining a comment type entity. Namespace Drupal\comment Code public function getTargetEntityTypeId();

CommentTypeInterface::getDescription

public CommentTypeInterface::getDescription() Returns the comment type description. Return value string The comment-type description. File core/modules/comment/src/CommentTypeInterface.php, line 18 Class CommentTypeInterface Provides an interface defining a comment type entity. Namespace Drupal\comment Code public function getDescription();

CommentTypeInterface

Provides an interface defining a comment type entity. Hierarchy interface \Drupal\Core\Entity\EntityInterface; interface \Drupal\Core\Config\Entity\ThirdPartySettingsInterfaceinterface \Drupal\Core\Config\Entity\ConfigEntityInterfaceinterface \Drupal\comment\CommentTypeInterface File core/modules/comment/src/CommentTypeInterface.php, line 10 Namespace Drupal\comment Members Name Modifiers Type Description AccessibleInterface::access public function Checks data value ac

CommentTypeForm::__construct

public CommentTypeForm::__construct(EntityManagerInterface $entity_manager, LoggerInterface $logger, CommentManagerInterface $comment_manager) Constructs a CommentTypeFormController Parameters \Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager service. \Psr\Log\LoggerInterface $logger: A logger instance. \Drupal\comment\CommentManagerInterface $comment_manager: The comment manager. File core/modules/comment/src/CommentTypeForm.php, line 60 Class CommentTypeForm

CommentTypeForm::save

public CommentTypeForm::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 opera