diff --git a/core/modules/entity_reference/entity_reference.module b/core/modules/entity_reference/entity_reference.module index 5acf856..58b6063 100644 --- a/core/modules/entity_reference/entity_reference.module +++ b/core/modules/entity_reference/entity_reference.module @@ -5,7 +5,6 @@ * Provides a field that can reference other entities. */ -use Symfony\Component\HttpFoundation\JsonResponse; use Drupal\Component\Utility\NestedArray; use Drupal\Core\Database\Query\AlterableInterface; use Drupal\Core\Entity\EntityInterface; @@ -64,30 +63,6 @@ function entity_reference_entity_field_info_alter(&$info, $entity_type) { } /** - * Implements hook_menu(). - */ -function entity_reference_menu() { - $items = array(); - - $items['entity_reference/autocomplete/single/%/%/%'] = array( - 'title' => 'Entity Reference Autocomplete', - 'page callback' => 'NOT_USED', - 'page arguments' => array(2, 3, 4, 5), - 'access callback' => TRUE, - 'type' => MENU_CALLBACK, - ); - $items['entity_reference/autocomplete/tags/%/%/%'] = array( - 'title' => 'Entity Reference Autocomplete', - 'page callback' => 'NOT_USED', - 'page arguments' => array(2, 3, 4, 5), - 'access callback' => TRUE, - 'type' => MENU_CALLBACK, - ); - - return $items; -} - -/** * Gets the selection handler for a given entity_reference field. * * @return \Drupal\entity_reference\Plugin\Type\Selection\SelectionInterface