diff --git a/core/modules/image/image.module b/core/modules/image/image.module index 050f0e4..02ad43b 100644 --- a/core/modules/image/image.module +++ b/core/modules/image/image.module @@ -415,7 +415,7 @@ function image_field_config_update(FieldConfigInterface $field) { $prior_instance = $field->original; - $fid_new = $field-getSetting('default_image')['fid']; + $fid_new = $field->getSetting('default_image')['fid']; $fid_old = $prior_instance->settings['default_image']['fid']; // If the old and new files do not match, update the default accordingly. diff --git a/core/modules/taxonomy/src/Entity/Vocabulary.php b/core/modules/taxonomy/src/Entity/Vocabulary.php index 1343dfc..f793ae9 100644 --- a/core/modules/taxonomy/src/Entity/Vocabulary.php +++ b/core/modules/taxonomy/src/Entity/Vocabulary.php @@ -116,7 +116,7 @@ public function postSave(EntityStorageInterface $storage, $update = TRUE) { foreach ($field_storages as $field_storage) { $update_storage = FALSE; - foreach ($field_storage->settings['allowed_values'] as &$value) { + foreach ($field_storage->getSetting('allowed_values') as &$value) { if ($value['vocabulary'] == $this->getOriginalId()) { $value['vocabulary'] = $this->id(); $update_storage = TRUE;