Issue #3383692 by Murz, xjm, smustgrave: Document that NULL is an allowed return value for EntityRepositoryInterface::getTranslationFromContext()

merge-requests/5344/head
xjm 2023-11-12 09:53:06 -06:00
parent d7c2ce4ce4
commit 731c734462
No known key found for this signature in database
GPG Key ID: 206B0B8743BDF4C2
1 changed files with 3 additions and 2 deletions

View File

@ -64,8 +64,9 @@ interface EntityRepositoryInterface {
* (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()
*/