private function getResourceFromParameter($prefix = '--unique-prefix')
    {
        $resource = null;
        $hasParameter = false;

        $val = $this->getParameterValue($prefix);
        if ($val) {
            $hasParameter = true;
            $resource = $this->getResource($val);
            if (!$resource->exists()) {
                $resource = null;
            }
        }

        return $hasParameter ? $resource : false;
    }
private function getResourceFromParameter($prefix = '--unique-prefix')
    {
        $resource = null;
        $hasParameter = false;

        $val = $this->getParameterValue($prefix);
        if ($val) {
            $hasParameter = true;
            $resource = $this->getResource($val);
            if (!$resource->exists()) {
                $resource = null;
            }
        }

        return $hasParameter ? $resource : false;
    }
private function getResourceFromParameter ( $ prefix = '--unique-prefix' ) { $ resource = null ; $ hasParameter = false ; $ val = $ this -> getParameterValue ( $ prefix ) ; if ( $ val ) { $ hasParameter = true ; $ resource = $ this -> getResource ( $ val ) ; if ( ! $ resource -> exists ( ) ) { $ resource = null ; } } return $ hasParameter ? $ resource : false ; }
Get parameter from the list of parameters as Resource
@param string $prefix
@return bool|\core_kernel_classes_Resource
Get parameter from the list of parameters as Resource