function TitleCallback::example

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Controller/TitleResolverTest.php \Drupal\Tests\Core\Controller\TitleCallback::example()
  2. 8.9.x core/tests/Drupal/Tests/Core/Controller/TitleResolverTest.php \Drupal\Tests\Core\Controller\TitleCallback::example()
  3. 11.x 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 170

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;
}

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