public function Logger::display in Simple XML sitemap 4.x
Same name and namespace in other branches
- 8.3 src/Logger.php \Drupal\simple_sitemap\Logger::display()
- 8.2 src/Logger.php \Drupal\simple_sitemap\Logger::display()
Parameters
string $displayMessageType:
string $permission:
Return value
$this
File
- src/
Logger.php, line 97
Class
- Logger
- Class Logger
Namespace
Drupal\simple_sitemapCode
public function display(string $displayMessageType = self::DISPLAY_MESSAGE_TYPE_DEFAULT, string $permission = '') : Logger {
if (empty($permission) || $this->currentUser
->hasPermission($permission)) {
$this->messenger
->addMessage($this
->t($this->message, $this->substitutions), $displayMessageType);
}
return $this;
}