diff --git a/core/lib/Drupal/Core/Entity/Element/EntityAutocomplete.php b/core/lib/Drupal/Core/Entity/Element/EntityAutocomplete.php index 7a28be19bc..c902084bc4 100644 --- a/core/lib/Drupal/Core/Entity/Element/EntityAutocomplete.php +++ b/core/lib/Drupal/Core/Entity/Element/EntityAutocomplete.php @@ -116,7 +116,7 @@ public static function valueCallback(&$element, $input, FormStateInterface $form // Extract the labels from the passed-in entity objects, taking access // checks into account. - /* @var \Drupal\Core\Entity\EntityInterface $entity */ + /** @var \Drupal\Core\Entity\EntityInterface $entity */ foreach ($element['#default_value'] as $entity) { \Drupal::service('renderer')->addCacheableDependency($element, $entity->access('view', NULL, TRUE)); }