/** * @inheritDoc */ public function __construct(AbsCmpFields $component, $name) { parent::__construct($component, $name); if (!$this->menuPageComponent->getOptions()->exists($name)) { throw new \InvalidArgumentException('Option "' . $name . '" isn\'t defined'); } $this->value = $this->getValue(); }
/** * @inheritDoc */ public function __construct(AbsCmpFields $component, $name) { parent::__construct($component, $name); $this->value = $this->getValue(); }