public function ModerationSidebarController::title in Moderation Sidebar 8
Renders the sidebar title for moderating this Entity.
Parameters
\Drupal\Core\Entity\ContentEntityInterface $entity: A moderated entity.
Return value
string The title of the sidebar.
1 string reference to 'ModerationSidebarController::title'
File
- src/
Controller/ ModerationSidebarController.php, line 321
Class
- ModerationSidebarController
- Endpoints for the Moderation Sidebar module.
Namespace
Drupal\moderation_sidebar\ControllerCode
public function title(ContentEntityInterface $entity) {
return $entity
->label();
}