function DevelDumperManager::exportAsRenderable

Same name in other branches
  1. 8.x-1.x src/DevelDumperManager.php \Drupal\devel\DevelDumperManager::exportAsRenderable()
  2. 5.x src/DevelDumperManager.php \Drupal\devel\DevelDumperManager::exportAsRenderable()

Overrides DevelDumperManagerInterface::exportAsRenderable

File

src/DevelDumperManager.php, line 131

Class

DevelDumperManager
Class DevelDumperManager.

Namespace

Drupal\devel

Code

public function exportAsRenderable($input, $name = NULL, $plugin_id = NULL) {
    if ($this->hasAccessToDevelInformation()) {
        return $this->createInstance($plugin_id)
            ->exportAsRenderable($input, $name);
    }
    return [];
}