Skip to content
Snippets Groups Projects

Edit sdc_display.module

1 file
+ 7
0
Compare changes
  • Side-by-side
  • Inline
+ 7
0
@@ -305,6 +305,13 @@ function sdc_display_entity_view_alter(array &$build, EntityInterface $entity, E
$entity,
);
$entity_type = $entity->getEntityTypeId();
// Add basic variables.
$prop_values['id'] = $entity->id();
$prop_values['entity_type'] = $entity_type;
$prop_values['bundle'] = $entity->bundle();
$prop_values['url'] = $entity->toUrl();
$build = [
'#cache' => $build['#cache'],
'#entity_type' => $entity_type,
Loading