src/Sulu/Bundle/SnippetBundle/DependencyInjection/Compiler/SnippetAreaCompilerPass.php
private function getArea($template, $area, $locales, $templateTitles)
    {
        $key = $area['key'];

        $titles = [];

        foreach ($locales as $locale) {
            $title = $templateTitles[$locale] . ' ' . ucfirst($key);
            if (isset($area['title'][$locale])) {
                $title = $area['title'][$locale];
            }

            $titles[$locale] = $title;
        }

        return [
            'key' => $key,
            'template' => $template,
            'title' => $titles,
        ];
    }
private function getArea($template, $area, $locales, $templateTitles)
    {
        $key = $area['key'];

        $titles = [];

        foreach ($locales as $locale) {
            $title = $templateTitles[$locale] . ' ' . ucfirst($key);
            if (isset($area['title'][$locale])) {
                $title = $area['title'][$locale];
            }

            $titles[$locale] = $title;
        }

        return [
            'key' => $key,
            'template' => $template,
            'title' => $titles,
        ];
    }
private function getArea ( $ template , $ area , $ locales , $ templateTitles ) { $ key = $ area [ 'key' ] ; $ titles = [ ] ; foreach ( $ locales as $ locale ) { $ title = $ templateTitles [ $ locale ] . ' ' . ucfirst ( $ key ) ; if ( isset ( $ area [ 'title' ] [ $ locale ] ) ) { $ title = $ area [ 'title' ] [ $ locale ] ; } $ titles [ $ locale ] = $ title ; } return [ 'key' => $ key , 'template' => $ template , 'title' => $ titles , ] ; }
Get area.

@return array
Get area .