Sonata\ProductBundle\Model\BaseProductProvider::getOption PHP Метод

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

public getOption ( string $name, mixed $default = null ) : array | null
$name string
$default mixed
Результат array | null
    public function getOption($name, $default = null)
    {
        return isset($this->options[$name]) ? $this->options[$name] : $default;
    }