CommentType::$label

The comment type label. Type: string File core/modules/comment/src/Entity/CommentType.php, line 58 Class CommentType Defines the comment type entity. Namespace Drupal\comment\Entity Code protected $label;

CommentType::$id

The comment type ID. Type: string File core/modules/comment/src/Entity/CommentType.php, line 51 Class CommentType Defines the comment type entity. Namespace Drupal\comment\Entity Code protected $id;

CommentType

Defines the comment type entity. Plugin annotation @ConfigEntityType( id = "comment_type", label = @Translation("Comment type"), handlers = { "form" = { "default" = "Drupal\comment\CommentTypeForm", "add" = "Drupal\comment\CommentTypeForm", "edit" = "Drupal\comment\CommentTypeForm", "delete" = "Drupal\comment\Form\CommentTypeDeleteForm" }, "list_builder" = "Drupal\comment\CommentTypeListBuilder" }, admin_permission = "administer comment types", co

CommentTranslationHandler::entityFormTitle

protected CommentTranslationHandler::entityFormTitle(EntityInterface $entity) Returns the title to be used for the entity form page. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity whose form is being altered. Return value string|null The label of the entity, or NULL if there is no label defined. Overrides ContentTranslationHandler::entityFormTitle File core/modules/comment/src/CommentTranslationHandler.php, line 32 Class CommentTranslationHandler Defines the translati

CommentTranslationHandler::entityFormEntityBuild

public CommentTranslationHandler::entityFormEntityBuild($entity_type, EntityInterface $entity, array $form, FormStateInterface $form_state) Entity builder method. Parameters string $entity_type: The type of the entity. \Drupal\Core\Entity\EntityInterface $entity: The entity whose form is being built. Overrides ContentTranslationHandler::entityFormEntityBuild See also \Drupal\content_translation\ContentTranslationHandler::entityFormAlter() File core/modules/comment/src/CommentTranslationHandle

CommentTranslationHandler::entityFormAlter

public CommentTranslationHandler::entityFormAlter(array &$form, FormStateInterface $form_state, EntityInterface $entity) Performs the needed alterations to the entity form. Parameters array $form: The entity form to be altered to provide the translation workflow. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. \Drupal\Core\Entity\EntityInterface $entity: The entity being created or edited. Overrides ContentTranslationHandler::entityFormAlter File core/modul

CommentTranslationHandler

Defines the translation handler for comments. Hierarchy class \Drupal\content_translation\ContentTranslationHandler implements ContentTranslationHandlerInterface, EntityHandlerInterface uses DependencySerializationTraitclass \Drupal\comment\CommentTranslationHandler File core/modules/comment/src/CommentTranslationHandler.php, line 12 Namespace Drupal\comment Members Name Modifiers Type Description CommentTranslationHandler::entityFormAlter public function Performs the n

CommentStorageSchema

Defines the comment schema handler. Hierarchy class \Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema implements DynamicallyFieldableEntityStorageSchemaInterface uses DependencySerializationTraitclass \Drupal\comment\CommentStorageSchema File core/modules/comment/src/CommentStorageSchema.php, line 12 Namespace Drupal\comment Members Name Modifiers Type Description CommentStorageSchema::getEntitySchema protected function Gets the entity schema for the specified entit

CommentStorageSchema::getEntitySchema

protected CommentStorageSchema::getEntitySchema(ContentEntityTypeInterface $entity_type, $reset = FALSE) Gets the entity schema for the specified entity type. Entity types may override this method in order to optimize the generated schema of the entity tables. However, only cross-field optimizations should be added here; e.g., an index spanning multiple fields. Optimizations that apply to a single field have to be added via SqlContentEntityStorageSchema::getSharedTableFieldSchema() instead. Par

CommentStorageSchema::getSharedTableFieldSchema

protected CommentStorageSchema::getSharedTableFieldSchema(FieldStorageDefinitionInterface $storage_definition, $table_name, array $column_mapping) Gets the schema for a single field definition. Entity types may override this method in order to optimize the generated schema for given field. While all optimizations that apply to a single field have to be added here, all cross-field optimizations should be via SqlContentEntityStorageSchema::getEntitySchema() instead; e.g., an index spanning multip