ModerationStateTransitionListBuilder::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 DraggableListBuilder::render

File

core/modules/content_moderation/src/ModerationStateTransitionListBuilder.php, line 94

Class

ModerationStateTransitionListBuilder
Provides a listing of Moderation state transition entities.

Namespace

Drupal\content_moderation

Code

public function render() {
  $build = parent::render();

  $build['item'] = [
    '#type' => 'item',
    '#markup' => $this->t('On this screen you can define <em>transitions</em>. Every time an entity is saved, it undergoes a transition. It is not possible to save an entity if it tries do a transition not defined here. Transitions do not necessarily mean a state change, it is possible to transition from a state to the same state but that transition needs to be defined here as well.'),
    '#weight' => -5,
  ];

  return $build;
}
doc_Drupal
2016-10-29 09:29:05
Comments
Leave a Comment

Please login to continue.