php notice fix in materio_decoupled

This commit is contained in:
Bachir Soussi Chiadmi 2019-07-14 15:58:49 +02:00
parent 8a82e447b9
commit cdd3bf1ea3
1 changed files with 1 additions and 0 deletions

View File

@ -36,6 +36,7 @@ function materio_decoupled_page_attachments(array &$attachments) {
$entity_type = null;
$entity_bundle = null;
$entity_id = null;
$entity_uuid = null;
foreach (['node', 'taxonomy_term'] as $type) {
$entity = \Drupal::routeMatch()->getParameter($type);
if($entity){