interface TranslationNodesWarmer (View source)

When loading many translated documents, this could lead to a separate PHPCR request for each translation. A translation strategy can implement this interface to be noticed when many nodes are loaded and pre-fetch all of them in one go.

Methods

mixed
getTranslationsForNodes(NodeInterface[] $nodes, array $locales, SessionInterface $session)

This method will return all translations by the locale, but the main purpose of it is to warm up all translation nodes in one request to PHPCR.

Details

mixed getTranslationsForNodes(NodeInterface[] $nodes, array $locales, SessionInterface $session)

This method will return all translations by the locale, but the main purpose of it is to warm up all translation nodes in one request to PHPCR.

Parameters

NodeInterface[] $nodes
array $locales
SessionInterface $session

Return Value

mixed