src/CoreBundle/EventListener/DcGeneral/Table/MetaModel/LanguageOptionsListener.php
public function handle(GetOptionsEvent $event)
    {
        if (!$this->wantToHandle($event)) {
            return;
        }

        $event->setOptions(array_flip(array_filter(array_flip(System::getLanguages()), function ($langCode) {
            // Disable >2 char long language codes for the moment.
            return (strlen($langCode) == 2);
        })));
    }
public function handle(GetOptionsEvent $event)
    {
        if (!$this->wantToHandle($event)) {
            return;
        }

        $event->setOptions(array_flip(array_filter(array_flip(System::getLanguages()), function ($langCode) {
            // Disable >2 char long language codes for the moment.
            return (strlen($langCode) == 2);
        })));
    }
Prepare the language options.

@param GetOptionsEvent $event The event.

@return void