Console\Locale\EnableLocaleCommand::showLocaleOverview PHP Method

showLocaleOverview() private method

private showLocaleOverview ( )
    private function showLocaleOverview()
    {
        $locale = array_map(function ($locale, $key) {
            $enabledMessage = null;
            $interfaceMessage = null;
            if ($this->defaultEnabledLocale === $key) {
                $enabledMessage = ' (default)';
            }
            if ($this->defaultInterfaceLocale === $key) {
                $interfaceMessage = ' (default)';
            }
            return ['key' => $key, 'locale' => $locale, 'installed' => array_key_exists($key, $this->installedLocale) ? 'Y' : 'N', 'interface' => (array_key_exists($key, $this->interfaceLocale) ? 'Y' : 'N') . $interfaceMessage, 'enabled' => (array_key_exists($key, $this->enabledLocale) ? 'Y' : 'N') . $enabledMessage, 'redirect' => array_key_exists($key, $this->redirectLocale) ? 'Y' : 'N'];
        }, $this->getInstallableLocale(), array_keys($this->getInstallableLocale()));
        $this->formatter->listing(["key:\t\tThe identifier of the locale", "locale:\tThe name of the locale", "installed:\tPossible locale to use as interface, enabled or redirect locale", "interface:\tLocale that the user in the backend can use for the interface", "enabled:\tLocale that are accessible for visitors", "redirect:\tLocale that people may automatically be redirected to based upon their browser locale"]);
        $this->formatter->table(['key', 'locale', 'installed', 'interface', 'enabled', 'redirect'], $locale);
    }