TranslationsCacheWarmer::isOptional()

bool isOptional() Checks whether this warmer is optional or not. Optional warmers can be ignored on certain conditions. A warmer should return true if the cache can be generated incrementally and on-demand. Return Value bool true if the warmer is optional, false otherwise

TranslationsCacheWarmer

class TranslationsCacheWarmer implements CacheWarmerInterface Generates the catalogues for translations. Methods __construct(TranslatorInterface $translator) warmUp(string $cacheDir) Warms up the cache. bool isOptional() Checks whether this warmer is optional or not. Details __construct(TranslatorInterface $translator) Parameters TranslatorInterface $translator warmUp(string $cacheDir) War

TranslationNodeVisitor::getPriority()

getPriority() {@inheritdoc}

TranslationNodeVisitor::getMessages()

getMessages()

TranslationNodeVisitor::enable()

enable()

TranslationNodeVisitor::disable()

disable()

TranslationNodeVisitor

class TranslationNodeVisitor extends Twig_BaseNodeVisitor TranslationNodeVisitor extracts translation messages. Constants UNDEFINED_DOMAIN Methods enable() disable() getMessages() getPriority() {@inheritdoc} Details enable() disable() getMessages() getPriority() {@inheritdoc}

TranslationLoader

class TranslationLoader TranslationLoader loads translation messages from translation files. Methods addLoader(string $format, LoaderInterface $loader) Adds a loader to the translation extractor. loadMessages(string $directory, MessageCatalogue $catalogue) Loads translation messages from a directory to the catalogue. Details addLoader(string $format, LoaderInterface $loader) Adds a loader to the translation extractor. Parameters string

TranslationFormListener::preSetData()

preSetData(FormEvent $event) Parameters FormEvent $event

TranslationFormListener::getSubscribedEvents()

static array getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. The array keys are event names and the value can be: The method name to call (priority defaults to 0) An array composed of the method name to call and the priority An array of arrays composed of the method names to call and respective priorities, or 0 if unset For instance: array('eventName' => 'methodName') array('eventName' => array('methodName', $priority)) a