You are here

function ConfigTestController::enable in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/config/tests/config_test/src/ConfigTestController.php \Drupal\config_test\ConfigTestController::enable()

Enables a ConfigTest object.

Parameters

\Drupal\config_test\ConfigTest $config_test: The ConfigTest object to enable.

Return value

\Symfony\Component\HttpFoundation\RedirectResponse A redirect response to the config_test listing page.

1 string reference to 'ConfigTestController::enable'
config_test.routing.yml in core/modules/config/tests/config_test/config_test.routing.yml
core/modules/config/tests/config_test/config_test.routing.yml

File

core/modules/config/tests/config_test/src/ConfigTestController.php, line 41
Contains \Drupal\config_test\ConfigTestController.

Class

ConfigTestController
Route controller class for the config_test module.

Namespace

Drupal\config_test

Code

function enable(ConfigTest $config_test) {
  $config_test
    ->enable()
    ->save();
  return new RedirectResponse($config_test
    ->url('collection', array(
    'absolute' => TRUE,
  )));
}