You are here

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'
moderation_sidebar.routing.yml in ./moderation_sidebar.routing.yml
moderation_sidebar.routing.yml

File

src/Controller/ModerationSidebarController.php, line 321

Class

ModerationSidebarController
Endpoints for the Moderation Sidebar module.

Namespace

Drupal\moderation_sidebar\Controller

Code

public function title(ContentEntityInterface $entity) {
  return $entity
    ->label();
}