public function BibciteEntityPreviewController::title in Bibliography & Citation 8
Same name and namespace in other branches
- 2.0.x modules/bibcite_entity/src/Controller/BibciteEntityPreviewController.php \Drupal\bibcite_entity\Controller\BibciteEntityPreviewController::title()
The _title_callback for the page that renders a reference in preview.
Parameters
\Drupal\Core\Entity\EntityInterface $bibcite_reference_preview: The current reference entity.
Return value
string The page title.
1 string reference to 'BibciteEntityPreviewController::title'
- bibcite_entity.routing.yml in modules/
bibcite_entity/ bibcite_entity.routing.yml - modules/bibcite_entity/bibcite_entity.routing.yml
File
- modules/
bibcite_entity/ src/ Controller/ BibciteEntityPreviewController.php, line 69
Class
- BibciteEntityPreviewController
- Defines a controller to render a single bibcite entity in preview.
Namespace
Drupal\bibcite_entity\ControllerCode
public function title(EntityInterface $bibcite_reference_preview) {
return $this->repository
->getTranslationFromContext($bibcite_reference_preview)
->label();
}