summaryrefslogtreecommitdiffstats
path: root/core/modules/entity_reference/lib/Drupal/entity_reference/Tests/EntityReferenceSelectionAccessTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/entity_reference/lib/Drupal/entity_reference/Tests/EntityReferenceSelectionAccessTest.php')
-rw-r--r--core/modules/entity_reference/lib/Drupal/entity_reference/Tests/EntityReferenceSelectionAccessTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/entity_reference/lib/Drupal/entity_reference/Tests/EntityReferenceSelectionAccessTest.php b/core/modules/entity_reference/lib/Drupal/entity_reference/Tests/EntityReferenceSelectionAccessTest.php
index ba21eea..ebfccca 100644
--- a/core/modules/entity_reference/lib/Drupal/entity_reference/Tests/EntityReferenceSelectionAccessTest.php
+++ b/core/modules/entity_reference/lib/Drupal/entity_reference/Tests/EntityReferenceSelectionAccessTest.php
@@ -34,7 +34,7 @@ class EntityReferenceSelectionAccessTest extends WebTestBase {
}
protected function assertReferenceable(FieldDefinitionInterface $field_definition, $tests, $handler_name) {
- $handler = entity_reference_get_selection_handler($field_definition);
+ $handler = \Drupal::service('plugin.manager.entity_reference.selection')->getSelectionHandler($field_definition);
foreach ($tests as $test) {
foreach ($test['arguments'] as $arguments) {