Skip to content

Language export event

oierbravo requested to merge language-metadata-event into 1.1.x
  • Added weight from core.
  • Added LANGUAGE_EXPORT event for being able to extend language data to be exported.

Example implementation:

public function handleHidden(StaticExportExporterLanguageMetadataEvent $event){
    $data = $event->getData();
    $language = $event->getLanguage();
    $configurableLanguage = $this->getConfigurableLanguageEntity($language);
    $data['hidden'] = $configurableLanguage->getThirdPartySetting('hidden_language', 'hidden', FALSE);

    $event->setData($data);
    return $event;
}
Edited by oierbravo

Merge request reports

Loading