You are here

public function Logger::display in Simple XML sitemap 8.3

Same name and namespace in other branches
  1. 8.2 src/Logger.php \Drupal\simple_sitemap\Logger::display()
  2. 4.x src/Logger.php \Drupal\simple_sitemap\Logger::display()

Parameters

string $displayMessageType:

string $permission:

Return value

$this

File

src/Logger.php, line 95

Class

Logger
Class Logger @package Drupal\simple_sitemap

Namespace

Drupal\simple_sitemap

Code

public function display($displayMessageType = self::DISPLAY_MESSAGE_TYPE_DEFAULT, $permission = '') {
  if (empty($permission) || $this->currentUser
    ->hasPermission($permission)) {
    $this->messenger
      ->addMessage($this
      ->t($this->message, $this->substitutions), $displayMessageType);
  }
  return $this;
}