src/Charcoal/Admin/Support/AdminTrait.php
protected function adminConfig($key = null, $default = null)
    {
        if ($key) {
            if (isset($this->adminConfig[$key])) {
                return $this->adminConfig[$key];
            } else {
                if (!is_string($default) && is_callable($default)) {
                    return $default();
                } else {
                    return $default;
                }
            }
        }

        return $this->adminConfig;
    }
protected function adminConfig($key = null, $default = null)
    {
        if ($key) {
            if (isset($this->adminConfig[$key])) {
                return $this->adminConfig[$key];
            } else {
                if (!is_string($default) && is_callable($default)) {
                    return $default();
                } else {
                    return $default;
                }
            }
        }

        return $this->adminConfig;
    }
protected function adminConfig ( $ key = null , $ default = null ) { if ( $ key ) { if ( isset ( $ this -> adminConfig [ $ key ] ) ) { return $ this -> adminConfig [ $ key ] ; } else { if ( ! is_string ( $ default ) && is_callable ( $ default ) ) { return $ default ( ) ; } else { return $ default ; } } } return $ this -> adminConfig ; }
Retrieve the admin's configset.

@param  string|null $key     Optional data key to retrieve from the configset.
@param  mixed|null  $default The default value to return if data key does not exist.
@return mixed|AdminConfig
Retrieve the admin s configset .