function DevelDumperManager::message

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

Overrides DevelDumperManagerInterface::message

File

src/DevelDumperManager.php, line 94

Class

DevelDumperManager
Class DevelDumperManager.

Namespace

Drupal\devel

Code

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