/** * {@inheritdoc} */ public function init() { parent::init(); $this->loggerChannel->error($this->getMessage(), array('channel' => 'openlayers')); $this->messenger->addMessage($this->getMessage(), 'error', FALSE); }