function ConfigTestController::editTitle

Same name in other branches
  1. 9 core/modules/config/tests/config_test/src/ConfigTestController.php \Drupal\config_test\ConfigTestController::editTitle()
  2. 8.9.x core/modules/config/tests/config_test/src/ConfigTestController.php \Drupal\config_test\ConfigTestController::editTitle()
  3. 10 core/modules/config/tests/config_test/src/ConfigTestController.php \Drupal\config_test\ConfigTestController::editTitle()

Route title callback.

Parameters

\Drupal\config_test\Entity\ConfigTest $config_test: The ConfigTest object.

Return value

string The title for the ConfigTest edit form.

1 string reference to 'ConfigTestController::editTitle'
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 25

Class

ConfigTestController
Route controller class for the config_test module.

Namespace

Drupal\config_test

Code

public function editTitle(ConfigTest $config_test) {
    return $this->t('Edit %label', [
        '%label' => $config_test->label(),
    ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.