skeeks\cms\helpers\UrlHelper::getSystem PHP Méthode

getSystem() public méthode

Получить системный параметр
public getSystem ( null | string $key = null, null $default = null ) : array | mixed
$key null | string
$default null
Résultat array | mixed
    public function getSystem($key = null, $default = null)
    {
        $systemData = (array) $this->get(self::SYSTEM_CMS_NAME, []);
        if ($key) {
            return ArrayHelper::getValue($systemData, $key, $default);
        } else {
            return $systemData;
        }
    }