NodeType::$display_submitted

Display setting for author and date Submitted by post information. Type: bool File core/modules/node/src/Entity/NodeType.php, line 100 Class NodeType Defines the Node type configuration entity. Namespace Drupal\node\Entity Code protected $display_submitted = TRUE;

NodeType::$description

A brief description of this node type. Type: string File core/modules/node/src/Entity/NodeType.php, line 72 Class NodeType Defines the Node type configuration entity. Namespace Drupal\node\Entity Code protected $description;

NodeType

Defines the Node type configuration entity. Plugin annotation @ConfigEntityType( id = "node_type", label = @Translation("Content type"), handlers = { "access" = "Drupal\node\NodeTypeAccessControlHandler", "form" = { "add" = "Drupal\node\NodeTypeForm", "edit" = "Drupal\node\NodeTypeForm", "delete" = "Drupal\node\Form\NodeTypeDeleteConfirm" }, "list_builder" = "Drupal\node\NodeTypeListBuilder", }, admin_permission = "administer content types", config_

NodeTranslationHandler::entityFormTitle

protected NodeTranslationHandler::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/node/src/NodeTranslationHandler.php, line 64 Class NodeTranslationHandler Defines the translation handler f

NodeTranslationHandler::entityFormEntityBuild

public NodeTranslationHandler::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/node/src/NodeTranslationHandler.php, li

NodeTranslationHandler::entityFormAlter

public NodeTranslationHandler::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/modules/

NodeTranslationHandler

Defines the translation handler for nodes. Hierarchy class \Drupal\content_translation\ContentTranslationHandler implements ContentTranslationHandlerInterface, EntityHandlerInterface uses DependencySerializationTraitclass \Drupal\node\NodeTranslationHandler File core/modules/node/src/NodeTranslationHandler.php, line 12 Namespace Drupal\node Members Name Modifiers Type Description ContentTranslationHandler::$currentUser protected property The current user. ContentTrans

NodeStorageSchema::getSharedTableFieldSchema

protected NodeStorageSchema::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 multiple

NodeStorageSchema::getEntitySchema

protected NodeStorageSchema::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. Parame

NodeStorageSchema

Defines the node schema handler. Hierarchy class \Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema implements DynamicallyFieldableEntityStorageSchemaInterface uses DependencySerializationTraitclass \Drupal\node\NodeStorageSchema File core/modules/node/src/NodeStorageSchema.php, line 12 Namespace Drupal\node Members Name Modifiers Type Description DependencySerializationTrait::$_serviceIds protected property An array of service IDs keyed by property name used for ser