You are here

public function ConfigInspectorController::getForm in Configuration Inspector 8

Form based configuration data inspection.

Parameters

string $name: Configuration name.

Return value

array A render array for a form view.

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

File

src/Controller/ConfigInspectorController.php, line 246

Class

ConfigInspectorController
Defines a controller for the config_inspector module.

Namespace

Drupal\config_inspector\Controller

Code

public function getForm($name) {
  $config_schema = $this->configInspectorManager
    ->getConfigSchema($name);
  $output = $this->formBuilder
    ->getForm('\\Drupal\\config_inspector\\Form\\ConfigInspectorItemForm', $config_schema);
  $output['#title'] = $this
    ->t('Raw configuration data for %name', [
    '%name' => $name,
  ]);
  return $output;
}