Backend\Core\Engine\Base\Action::getParameter PHP Метод

getParameter() публичный Метод

Get a parameter for a given key The function will return null if the key is not available By default we will cast the return value into a string, if you want something else specify it by passing the wanted type.
public getParameter ( string $key, string $type = 'string', mixed $defaultValue = null ) : mixed
$key string The name of the parameter.
$type string The return-type, possible values are: bool, boolean, int, integer, float, double, string, array.
$defaultValue mixed The value that should be returned if the key is not available.
Результат mixed
    public function getParameter($key, $type = 'string', $defaultValue = null)
    {
        $key = (string) $key;
        // parameter exists
        if (isset($this->parameters[$key]) && $this->parameters[$key] != '') {
            return \SpoonFilter::getValue($this->parameters[$key], null, null, $type);
        }
        return $defaultValue;
    }