public function FallbackControllerInterface::getEntityFallbackCandidates in Entity Language Fallback 8
Provides the list of language candidates for a given entity.
Parameters
ContentEntityInterface $entity: The entity we are checking for.
string $language_code: The language we have requested.
Return value
array List of language fallback candidates for the language for the entity.
1 method overrides FallbackControllerInterface::getEntityFallbackCandidates()
- FallbackController::getEntityFallbackCandidates in src/
FallbackController.php - @todo: Consider using @cache.memory service for cache meta-data (8.6+).
File
- src/
FallbackControllerInterface.php, line 28
Class
Namespace
Drupal\entity_language_fallbackCode
public function getEntityFallbackCandidates(ContentEntityInterface $entity, $language_code);