commit fc169272929290fa1314f5aac00c501106239cd6 Author: Yves Chedemois Date: Wed Jul 24 22:57:51 2013 +0200 more fixes diff --git a/core/lib/Drupal/Core/Entity/EntityStorageControllerBase.php b/core/lib/Drupal/Core/Entity/EntityStorageControllerBase.php index ea4e06c..988afa7 100644 --- a/core/lib/Drupal/Core/Entity/EntityStorageControllerBase.php +++ b/core/lib/Drupal/Core/Entity/EntityStorageControllerBase.php @@ -190,7 +190,7 @@ public function invokeFieldItemPrepareCache(EntityInterface $entity) { // of making LegacyConfigFieldItem implement PrepareCacheInterface. // @todo Remove once all core field types have been converted (see // http://drupal.org/node/2014671). - || (is_subclass_of($type_definition['class'], '\Drupal\field\Plugin\field\field_type\LegacyConfigFieldItem') && function_exists($type_definition['module'] . '_field_load'))) { + || (is_subclass_of($type_definition['class'], '\Drupal\field\Plugin\field\field_type\LegacyConfigFieldItem') && function_exists($type_definition['provider'] . '_field_load'))) { // Call the prepareCache() method directly on each item // individually. @@ -211,7 +211,7 @@ public function invokeFieldItemPrepareCache(EntityInterface $entity) { if (is_subclass_of($type_definition['class'], '\Drupal\Core\Entity\Field\PrepareCacheInterface') // @todo Remove once all core field types have been converted // (see http://drupal.org/node/2014671). - || (is_subclass_of($type_definition['class'], '\Drupal\field\Plugin\field\field_type\LegacyConfigFieldItem') && function_exists($type_definition['module'] . '_field_load'))) { + || (is_subclass_of($type_definition['class'], '\Drupal\field\Plugin\field\field_type\LegacyConfigFieldItem') && function_exists($type_definition['provider'] . '_field_load'))) { // Create the items object. $items = isset($entity->{$field_name}[$langcode]) ? $entity->{$field_name}[$langcode] : array(); diff --git a/core/modules/field/lib/Drupal/field/Plugin/Type/FieldType/ConfigEntityReferenceItemBase.php b/core/modules/field/lib/Drupal/field/Plugin/Type/FieldType/ConfigEntityReferenceItemBase.php index 603d900..c451fdb 100644 --- a/core/modules/field/lib/Drupal/field/Plugin/Type/FieldType/ConfigEntityReferenceItemBase.php +++ b/core/modules/field/lib/Drupal/field/Plugin/Type/FieldType/ConfigEntityReferenceItemBase.php @@ -161,7 +161,7 @@ public function instanceSettingsForm(array $form, array &$form_state) { */ protected function getLegacyCallback($hook) { $definition = $this->getPluginDefinition(); - $module = $definition['module']; + $module = $definition['provider']; $callback = "{$module}_field_{$hook}"; if (function_exists($callback)) { return $callback; diff --git a/core/modules/options/lib/Drupal/options/Plugin/field/widget/OptionsWidgetBase.php b/core/modules/options/lib/Drupal/options/Plugin/field/widget/OptionsWidgetBase.php index f6801c0..b16491c 100644 --- a/core/modules/options/lib/Drupal/options/Plugin/field/widget/OptionsWidgetBase.php +++ b/core/modules/options/lib/Drupal/options/Plugin/field/widget/OptionsWidgetBase.php @@ -115,7 +115,7 @@ protected function getOptions() { // Get the list of options from the field type module, and sanitize them. $field_type_info = field_info_field_types($this->fieldDefinition->getFieldType()); - $module = $field_type_info['module']; + $module = $field_type_info['provider']; $options = (array) $module_handler->invoke($module, 'options_list', array($this->fieldDefinition, $this->entity)); // Add an empty option if the widget needs one.