Skip to content
Snippets Groups Projects
Commit aa338298 authored by jrockowitz's avatar jrockowitz
Browse files

Update Schema.org CMS migration modules and configurations

parent 86cc4ade
No related branches found
No related tags found
No related merge requests found
Pipeline #471338 passed
......@@ -353,19 +353,14 @@ function schemadotorg_preprocess_page_title(array &$variables): void {
// Add the Schema.org Blueprints logo to all 'schemadotorg' routes.
$module_path = \Drupal::service('extension.list.module')->getPath('schemadotorg');
$variables['title'] = [
'image' => [
[
'#theme' => 'image',
'#uri' => $module_path . '/logo.png',
'#alt' => t('Logo for the Schema.org Blueprints project'),
'#attributes' => ['class' => ['schemadotorg-logo']],
'#attached' => ['library' => ['schemadotorg/schemadotorg.logo']],
],
],
'title' => [
'#markup' => $variables['title'],
],
$variables['title_prefix'] = [
'#theme' => 'image',
'#uri' => $module_path . '/logo.png',
'#alt' => t('Logo for the Schema.org Blueprints project'),
'#attributes' => ['class' => ['schemadotorg-logo']],
'#attached' => ['library' => ['schemadotorg/schemadotorg.logo']],
'#prefix' => '<h1>',
'#suffix' => '</h1>',
];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment