You are here

public function TitleCallback::example in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Controller/TitleResolverTest.php \Drupal\Tests\Core\Controller\TitleCallback::example()

Gets the example string.

Parameters

string $value: The dynamic value.

Return value

string Returns the example string.

File

core/tests/Drupal/Tests/Core/Controller/TitleResolverTest.php, line 143
Contains \Drupal\Tests\Core\Controller\TitleResolverTest.

Class

TitleCallback
Provides an example title callback for the testDynamicTitle method above.

Namespace

Drupal\Tests\Core\Controller

Code

public function example($value) {
  return 'test ' . $value;
}