Pimcore\View::getParam PHP Method

getParam() public method

public getParam ( $key, $default = null ) : mixed
$key
$default
return mixed
    public function getParam($key, $default = null)
    {
        $value = $this->getRequest()->getParam($key);
        if ((null === $value || '' === $value) && null !== $default) {
            $value = $default;
        }
        return $value;
    }