Sylius\Bundle\ResourceBundle\Controller\Parameters::get PHP Method

get() public method

public get ( $path, $default = null, $deep = false )
    public function get($path, $default = null, $deep = false)
    {
        $result = parent::get($path, $default);
        if (null === $result && $default !== null && $this->has($path)) {
            $result = $default;
        }
        return $result;
    }

Usage Example

 /**
  * @return string
  *
  * @throws \LogicException
  */
 public function getGrid()
 {
     if (!$this->hasGrid()) {
         throw new \LogicException('Current action does not use grid.');
     }
     return $this->parameters->get('grid');
 }
All Usage Examples Of Sylius\Bundle\ResourceBundle\Controller\Parameters::get
Parameters