Skip to content
Snippets Groups Projects
Commit b9600f2b authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-6062: modifying admin label to include publications on reference...

ISTWCMS-6062: modifying admin label to include publications on reference blocks when in layout builder
parent 259fd785
No related branches found
No related tags found
1 merge request!95ISTWCMS-6062: modifying admin label to include publications on reference...
...@@ -575,6 +575,17 @@ function uw_fdsu_theme_resp_preprocess_block(&$variables) { ...@@ -575,6 +575,17 @@ function uw_fdsu_theme_resp_preprocess_block(&$variables) {
// to the template variables and set the class to be used // to the template variables and set the class to be used
// to display the admin label. // to display the admin label.
if (!in_array($admin_label, $admin_labels_to_exclude)) { if (!in_array($admin_label, $admin_labels_to_exclude)) {
// ISTWCMS-6062, add publication to reference block admin
// labels when in layout builder.
if ($admin_label == 'Reference search') {
$admin_label = 'Publication reference search';
}
if ($admin_label == 'Reference teaser') {
$admin_label = 'Publication reference teaser';
}
$variables['admin_label'] = $admin_label; $variables['admin_label'] = $admin_label;
$variables['attributes']['class'][] = 'in-layout-builder'; $variables['attributes']['class'][] = 'in-layout-builder';
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment