public function ModeratedContentController::nodeListing in Drupal 8
Same name and namespace in other branches
- 9 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\ControllerCode
public function nodeListing() {
$entity_type = $this
->entityTypeManager()
->getDefinition('node');
return $this
->entityTypeManager()
->createHandlerInstance(ModeratedNodeListBuilder::class, $entity_type)
->render();
}