Skip to content
Snippets Groups Projects
Commit 23afa21c authored by Eric Bremner's avatar Eric Bremner Committed by Kevin Paxman
Browse files

ISTWCMS-5880: fixing media with in banners again

parent 6cea2919
No related branches found
No related tags found
3 merge requests!284Feature/istwcms 5880 ebremner banners above,!274Draft: ISTWCMS-5551: fixing office hours display,!260Feature/istwcms 5668 a5kulkar rename references to publications
......@@ -250,7 +250,10 @@ class UwNodeFieldValue {
// Set the banners as empty in case we do not have any.
$banners = [];
if ($node->field_uw_media_width) {
// Ensure that there is a media with and if so get
// the classes for the width.
if ($node->hasField('field_uw_media_width')) {
// Get the layout builder style based from the node value
// of media width.
$layout_builder_style = $layout_style = \Drupal::entityTypeManager()->getStorage('layout_builder_style')->load($node->field_uw_media_width->value);
......
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