Skip to content
Snippets Groups Projects

ISTWCMS-5124 Allow service bundle for cloning

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -108,7 +108,7 @@ function uw_cfg_common_entity_presave(EntityInterface $entity) {
if ($entity->getEntityTypeId() == 'node') {
// If there is a hero image (media), continue to process.
if ($media = $entity->field_uw_hero_image->entity) {
if (isset($entity->field_uw_hero_image) && $media = $entity->field_uw_hero_image->entity) {
// Hero media exists, get file entity from media.
if ($file = $media->field_media_image->entity) {
Loading