NodeViewBuilder

View builder handler for nodes. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityViewBuilder implements EntityHandlerInterface, EntityViewBuilderInterfaceclass \Drupal\node\NodeViewBuilder File core/modules/node/src/NodeViewBuilder.php, line 13 Namespace Drupal\node Members Name Modifiers Type Description DependencySerializationTrait::$_serviceIds protected property An array o

NodeTypeMapper::setEntity

public NodeTypeMapper::setEntity(ConfigEntityInterface $entity) Sets the entity instance for this mapper. This method can only be invoked when the concrete entity is known, that is in a request for an entity translation path. After this method is called, the mapper is fully populated with the proper display title and configuration names to use to check permissions or display a translation screen. Parameters \Drupal\Core\Config\Entity\ConfigEntityInterface $entity: The configuration entity to s

NodeTypeMapper

Provides a configuration mapper for node types. Hierarchy class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterfaceclass \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\config_translation\ConfigNamesMapper implements ConfigMapperInterface, ContainerFactoryPluginInterfaceclass \Drupal\config_translation\ConfigEntityMapperclass \Drupal\node\ConfigTranslation\NodeTypeMapper File core/mo

NodeTypeListBuilder::render

public NodeTypeListBuilder::render() Builds the entity listing as renderable array for table.html.twig. @todo Add a link to add a new item to the #empty text. Overrides EntityListBuilder::render File core/modules/node/src/NodeTypeListBuilder.php, line 56 Class NodeTypeListBuilder Defines a class to build a listing of node type entities. Namespace Drupal\node Code public function render() { $build = parent::render(); $build['table']['#empty'] = $this->t('No content types availab

NodeTypeListBuilder::getDefaultOperations

public NodeTypeListBuilder::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/node/src/NodeTypeListBuilder.php, line 43 Class NodeTypeListBuilder Defines a class to build a listing of node type en

NodeTypeListBuilder::buildRow

public NodeTypeListBuilder::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/node/src/NodeTypeListBuilder.php, line 31 Class NodeTypeListBuilder Defines a class to build a listing

NodeTypeListBuilder::buildHeader

public NodeTypeListBuilder::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/node/src/NodeTypeListBuilder.php, line 19 Class NodeTypeListBuilder Defines a class to build a listing of node type entities. Namespace Drupal\node Code public function buildHeader() { $header['title'] = t('Name'); $h

NodeTypeListBuilder

Defines a class to build a listing of node type entities. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityListBuilder implements EntityHandlerInterface, EntityListBuilderInterfaceclass \Drupal\Core\Config\Entity\ConfigEntityListBuilderclass \Drupal\node\NodeTypeListBuilder See also \Drupal\node\Entity\NodeType File core/modules/node/src/NodeTypeListBuilder.php, line 14 Namespace Drupal\node

NodeTypeInterface::setPreviewMode

public NodeTypeInterface::setPreviewMode($preview_mode) Sets the preview mode. Parameters int $preview_mode: DRUPAL_DISABLED, DRUPAL_OPTIONAL or DRUPAL_REQUIRED. File core/modules/node/src/NodeTypeInterface.php, line 66 Class NodeTypeInterface Provides an interface defining a node type entity. Namespace Drupal\node Code public function setPreviewMode($preview_mode);

NodeTypeInterface::setNewRevision

public NodeTypeInterface::setNewRevision($new_revision) Sets whether a new revision should be created by default. Parameters bool $new_revision_: TRUE if a new revision should be created by default. File core/modules/node/src/NodeTypeInterface.php, line 34 Class NodeTypeInterface Provides an interface defining a node type entity. Namespace Drupal\node Code public function setNewRevision($new_revision);