Browse Source

prevent whitescreen when rendering media attribution

8.x-1.x
Paul Pound 9 months ago
parent
commit
4d26af5ecc
  1. 3
      media_attribution.module

3
media_attribution.module

@ -149,10 +149,11 @@ function media_attribution_preprocess_entity_embed_container(&$variables) {
'#prefix' => ' ', '#prefix' => ' ',
]; ];
} }
$children = ['#markup' => $variables['children']];
$variables['children'] = [ $variables['children'] = [
'first' => [ 'first' => [
'#type' => 'markup', '#type' => 'markup',
'#markup' => \Drupal::service('renderer')->render($variables['children']) '#markup' => \Drupal::service('renderer')->render($children)
], ],
$attribution_text $attribution_text
]; ];

Loading…
Cancel
Save