You are here

public function ModeratedContentController::nodeListing in Drupal 9

Same name and namespace in other branches
  1. 8 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();
}