/** * {@inheritdoc} */ public function init(array $data) { foreach ($data as $property => $value) { $this->{$property} = $data[$property]; } if (isset($data['options'])) { $this->options = array_replace_recursive((array) $this->options, (array) $data['options']); } $this->loggerChannel->error($this->getMessage(), array('channel' => 'openlayers')); $this->messenger->addMessage($this->getMessage(), 'error', FALSE); }
/** * {@inheritdoc} */ public function init() { parent::init(); $this->loggerChannel->error($this->getMessage(), array('channel' => 'openlayers')); $this->messenger->addMessage($this->getMessage(), 'error', FALSE); }