public 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
1 2 3 4 5 6 7 8 9 10 11 | 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 ; } |
Please login to continue.