function ModeratedContentController::nodeListing

Same name in other branches
  1. 8.9.x core/modules/content_moderation/src/Controller/ModeratedContentController.php \Drupal\content_moderation\Controller\ModeratedContentController::nodeListing()
  2. 10 core/modules/content_moderation/src/Controller/ModeratedContentController.php \Drupal\content_moderation\Controller\ModeratedContentController::nodeListing()
  3. 11.x core/modules/content_moderation/src/Controller/ModeratedContentController.php \Drupal\content_moderation\Controller\ModeratedContentController::nodeListing()

Provides the listing page for moderated nodes.

Return value

array A render array as expected by \Drupal\Core\Render\RendererInterface::render().

1 string reference to 'ModeratedContentController::nodeListing'
content_moderation.routing.yml in core/modules/content_moderation/content_moderation.routing.yml
core/modules/content_moderation/content_moderation.routing.yml

File

core/modules/content_moderation/src/Controller/ModeratedContentController.php, line 20

Class

ModeratedContentController
Defines a controller to list moderated nodes.

Namespace

Drupal\content_moderation\Controller

Code

public function nodeListing() {
    $entity_type = $this->entityTypeManager()
        ->getDefinition('node');
    return $this->entityTypeManager()
        ->createHandlerInstance(ModeratedNodeListBuilder::class, $entity_type)
        ->render();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.