public function AppTitleProvider::analyticsTitle in Apigee Edge 8
Provides a title for the app analytics page.
Parameters
\Drupal\Core\Routing\RouteMatchInterface $route_match: The route match.
\Drupal\Core\Entity\EntityInterface $_entity: (optional) An entity, passed in directly from the request attributes.
Return value
string|null The title for the app analytics page, null if an entity was found.
File
- src/
Entity/ AppTitleProvider.php, line 42
Class
- AppTitleProvider
- Developer- and company (team) app specific title overrides and additions.
Namespace
Drupal\apigee_edge\EntityCode
public function analyticsTitle(RouteMatchInterface $route_match, EntityInterface $_entity = NULL) {
if ($entity = $this
->doGetEntity($route_match, $_entity)) {
return $this
->t('Analytics of %label @entity_type', [
'%label' => $entity
->label(),
'@entity_type' => mb_strtolower($this->entityTypeManager
->getDefinition($entity
->getEntityTypeId())
->getSingularLabel()),
]);
}
}