function DevelDumperManager::message

Same name in other branches
  1. 4.x src/DevelDumperManager.php \Drupal\devel\DevelDumperManager::message()

Overrides DevelDumperManagerInterface::message

File

src/DevelDumperManager.php, line 127

Class

DevelDumperManager
Manager class for DevelDumper.

Namespace

Drupal\devel

Code

public function message($input, $name = NULL, $type = MessengerInterface::TYPE_STATUS, $plugin_id = NULL, $load_references = FALSE) : void {
    if ($this->hasAccessToDevelInformation()) {
        $output = $this->export($input, $name, $plugin_id, $load_references);
        $this->messenger
            ->addMessage($output, $type, TRUE);
    }
}