NodeModerationHandler::enforceRevisionsBundleFormAlter

public NodeModerationHandler::enforceRevisionsBundleFormAlter(array &$form, FormStateInterface $form_state, $form_id) Alters bundle forms to enforce revision handling. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. string $form_id: The form id. Overrides ModerationHandler::enforceRevisionsBundleFormAlter See also hook_form_alter() File core/modules/content_moderation/src/En

NodeModerationHandler

Customizations for node entities. Hierarchy class \Drupal\content_moderation\Entity\Handler\ModerationHandler implements ModerationHandlerInterface, EntityHandlerInterface uses StringTranslationTraitclass \Drupal\content_moderation\Entity\Handler\NodeModerationHandler File core/modules/content_moderation/src/Entity/Handler/NodeModerationHandler.php, line 11 Namespace Drupal\content_moderation\Entity\Handler Members Name Modifiers Type Description ModerationHandler::createInst

NodeListBuilder::__construct

public NodeListBuilder::__construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, DateFormatterInterface $date_formatter, RedirectDestinationInterface $redirect_destination) Constructs a new NodeListBuilder object. Parameters \Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition. \Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage class. \Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter service.

NodeListBuilder::getDefaultOperations

protected NodeListBuilder::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 EntityListBuilder::getDefaultOperations File core/modules/node/src/NodeListBuilder.php, line 134 Class NodeListBuilder Defines a class to build a listing of node entities. Namespace

NodeListBuilder::createInstance

public static NodeListBuilder::createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) Instantiates a new instance of this entity handler. This is a factory method that returns a new instance of this object. The factory should pass any needed dependencies into the constructor of this object, but not the container itself. Every call to this method must return a new instance of this object; that is, it may not implement a singleton. Parameters \Symfony\Component\Dependenc

NodeListBuilder::buildRow

public NodeListBuilder::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/NodeListBuilder.php, line 99 Class NodeListBuilder Defines a class to build a listing of node ent

NodeListBuilder::buildHeader

public NodeListBuilder::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/NodeListBuilder.php, line 69 Class NodeListBuilder Defines a class to build a listing of node entities. Namespace Drupal\node Code public function buildHeader() { // Enable language column and filter if multiple la

NodeListBuilder::$redirectDestination

The redirect destination service. Type: \Drupal\Core\Routing\RedirectDestinationInterface File core/modules/node/src/NodeListBuilder.php, line 33 Class NodeListBuilder Defines a class to build a listing of node entities. Namespace Drupal\node Code protected $redirectDestination;

NodeListBuilder::$dateFormatter

The date formatter service. Type: \Drupal\Core\Datetime\DateFormatterInterface File core/modules/node/src/NodeListBuilder.php, line 26 Class NodeListBuilder Defines a class to build a listing of node entities. Namespace Drupal\node Code protected $dateFormatter;

NodeListBuilder

Defines a class to build a listing of node entities. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityListBuilder implements EntityHandlerInterface, EntityListBuilderInterfaceclass \Drupal\node\NodeListBuilder See also \Drupal\node\Entity\Node File core/modules/node/src/NodeListBuilder.php, line 19 Namespace Drupal\node Members Name Modifiers Type Description DependencySerializatio