Newscoop\NewscoopBundle\Services\SystemPreferencesService::getAllPreferences PHP Метод

getAllPreferences() публичный метод

Get all available preferences
public getAllPreferences ( ) : array
Результат array
    public function getAllPreferences()
    {
        if ($this->preferences) {
            return $this->preferences;
        }
        return $this->preferences = $this->em->createQueryBuilder('p')->select('p.value', 'p.option')->from('Newscoop\\NewscoopBundle\\Entity\\SystemPreferences', 'p')->getQuery()->getArrayResult();
    }