diff --git a/core/lib/Drupal/Core/Entity/Plugin/EntityReferenceSelection/SelectionBase.php b/core/lib/Drupal/Core/Entity/Plugin/EntityReferenceSelection/SelectionBase.php index 71c0624..8c75c98 100644 --- a/core/lib/Drupal/Core/Entity/Plugin/EntityReferenceSelection/SelectionBase.php +++ b/core/lib/Drupal/Core/Entity/Plugin/EntityReferenceSelection/SelectionBase.php @@ -341,8 +341,8 @@ protected function buildEntityQuery($match = NULL, $match_operator = 'CONTAINS') // If 'target_bundles' is NULL, all bundles are referenceable, no further // conditions are needed. if (isset($handler_settings['target_bundles']) && !is_null($handler_settings['target_bundles'])) { - // If 'target_bundles' is an empty array, no bundle is referencable, force - // the query to never return anything and bail out early. + // If 'target_bundles' is an empty array, no bundle is referenceable, + // force the query to never return anything and bail out early. if ($handler_settings['target_bundles'] === []) { $query->condition($entity_type->getKey('id'), NULL, '='); diff --git a/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php b/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php index bf48560..3fc04b0 100644 --- a/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php +++ b/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php @@ -337,7 +337,7 @@ public static function calculateDependencies(FieldDefinitionInterface $field_def * {@inheritdoc} */ public static function onDependencyRemoval(FieldDefinitionInterface $field_definition, array $dependencies) { - $changed = parent::calculateDependencies($field_definition, $dependencies); + $changed = parent::onDependencyRemoval($field_definition, $dependencies); $entity_manager = \Drupal::entityManager(); $target_entity_type = $entity_manager->getDefinition($field_definition->getFieldStorageDefinition()->getSetting('target_type'));