
| Current Path : /var/www/html/musik/web/themes/contrib/at_theme/at_core/src/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/musik/web/themes/contrib/at_theme/at_core/src/LazyBuilders.php |
<?php
namespace Drupal\at_core;
use \Drupal\Core\Security\TrustedCallbackInterface;
/**
* Lazy builders for the at_theme
*/
class LazyBuilders implements TrustedCallbackInterface {
/**
* {@inheritdoc}
*/
public static function trustedCallbacks() {
return ['breadcrumbTitle'];
}
/**
* Return values for the breadcrumb title placeholder.
* @param $page_title
* @return array
*/
public static function breadcrumbTitle() {
$request = \Drupal::request();
$route_match = \Drupal::routeMatch();
$title = \Drupal::service('title_resolver')->getTitle($request, $route_match->getRouteObject());
$array = [
'#theme' => 'page_title__breadcrumb',
'#title' => $title,
];
return $array;
}
}