You are here

public function Error::init in Openlayers 7.3

Initializes the object.

Overrides Base::init

File

src/Types/Error.php, line 68
Contains class Error.

Class

Error
Class Error.

Namespace

Drupal\openlayers\Types

Code

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