eZ\Publish\Core\MVC\ConfigResolverInterface::getParameter PHP Method

getParameter() public method

Returns value for $paramName, in $namespace.
public getParameter ( string $paramName, string $namespace = null, string $scope = null ) : mixed
$paramName string The parameter name, without $prefix and the current scope (i.e. siteaccess name).
$namespace string Namespace for the parameter name. If null, the default namespace should be used.
$scope string The scope you need $paramName value for.
return mixed
    public function getParameter($paramName, $namespace = null, $scope = null);

Usage Example

Example #1
0
 /**
  * Returns the parameter value from config resolver.
  *
  * @param string $parameterName
  * @param string $namespace
  * @param mixed $defaultValue
  *
  * @return mixed
  */
 protected function getParameter($parameterName, $namespace, $defaultValue = null)
 {
     if ($this->configResolver->hasParameter($parameterName, $namespace)) {
         return $this->configResolver->getParameter($parameterName, $namespace);
     }
     return $defaultValue;
 }
All Usage Examples Of eZ\Publish\Core\MVC\ConfigResolverInterface::getParameter