diff --git a/core/lib/Drupal/Core/Entity/EntityRepositoryInterface.php b/core/lib/Drupal/Core/Entity/EntityRepositoryInterface.php index f8623afcaed906c9fda07e899f7cde51866ca21f..27cfa7255921b59e641b7b1ba2db5277420075d1 100644 --- a/core/lib/Drupal/Core/Entity/EntityRepositoryInterface.php +++ b/core/lib/Drupal/Core/Entity/EntityRepositoryInterface.php @@ -64,8 +64,9 @@ public function loadEntityByConfigTarget($entity_type_id, $target); * (optional) An associative array of arbitrary data that can be useful to * determine the proper fallback sequence. * - * @return \Drupal\Core\Entity\EntityInterface - * An entity object for the translated data. + * @return \Drupal\Core\Entity\EntityInterface|null + * An entity object for the translated data, or NULL if the requested + * translation is missing, forbidden, or unavailable. * * @see \Drupal\Core\Language\LanguageManagerInterface::getFallbackCandidates() */