public function fromArray($config) { if (isset($config['icon'])) { $this->icon = $config['icon']; } return parent::fromArray($config); }
public function fromArray($config) { if (isset($config['events'])) { $this->events = $config['events']; } else { $this->config->error->addError('Elements: plugin - events are not set', true); return false; } return parent::fromArray($config); }