You are here

public function CampaignMonitorNodeController::title in Campaign Monitor 8

The _title_callback for the page that renders a single node.

Parameters

\Drupal\Core\Entity\EntityInterface $node: The current node.

Return value

string The page title.

File

modules/campaignmonitor_campaign/src/Controller/CampaignMonitorNodeController.php, line 108

Class

CampaignMonitorNodeController
Defines a controller to render a single node.

Namespace

Drupal\node\Controller

Code

public function title(EntityInterface $node) {
  return $this->entityManager
    ->getTranslationFromContext($node)
    ->label();
}