You are here

public function ConfigInspectorController::getTree in Configuration Inspector 8

Tree inspection view of the configuration.

Parameters

string $name: Configuration name.

Return value

array A render array for a tree view.

1 string reference to 'ConfigInspectorController::getTree'
config_inspector.routing.yml in ./config_inspector.routing.yml
config_inspector.routing.yml

File

src/Controller/ConfigInspectorController.php, line 230

Class

ConfigInspectorController
Defines a controller for the config_inspector module.

Namespace

Drupal\config_inspector\Controller

Code

public function getTree($name) {
  $config_schema = $this->configInspectorManager
    ->getConfigSchema($name);
  $output = $this
    ->formatTree($config_schema);
  $output['#title'] = $this
    ->t('Tree of configuration data for %name', [
    '%name' => $name,
  ]);
  return $output;
}