diff --git a/core/lib/Drupal/Core/Entity/EntityManager.php b/core/lib/Drupal/Core/Entity/EntityManager.php index 0a524b0..ff3b499 100644 --- a/core/lib/Drupal/Core/Entity/EntityManager.php +++ b/core/lib/Drupal/Core/Entity/EntityManager.php @@ -337,7 +337,7 @@ protected function buildBaseFieldDefinitions($entity_type_id) { // Retrieve base field definitions from modules. foreach ($this->moduleHandler->getImplementations('entity_base_field_info') as $module) { - $module_definitions = $this->moduleHandler->invoke($module, 'entity_base_field_info', $entity_type); + $module_definitions = $this->moduleHandler->invoke($module, 'entity_base_field_info', array($entity_type)); if (!empty($module_definitions)) { // Ensure the provider key actually matches the name of the provider // defining the field. @@ -424,7 +424,7 @@ protected function buildBundleFieldDefinitions($entity_type_id, $bundle, array $ // Retrieve base field definitions from modules. foreach ($this->moduleHandler->getImplementations('entity_bundle_field_info') as $module) { - $module_definitions = $this->moduleHandler->invoke($module, 'entity_bundle_field_info', $entity_type, $bundle, $bundle_field_module_definitions); + $module_definitions = $this->moduleHandler->invoke($module, 'entity_bundle_field_info', array($entity_type, $bundle, $base_field_definitions)); if (!empty($module_definitions)) { // Ensure the provider key actually matches the name of the provider // defining the field.