function TitleCallback::example

Gets the example value.

Parameters

\Stringable|string|array|null $value: The dynamic value.

Return value

string|array|null Returns the example value.

File

core/tests/Drupal/Tests/Core/Controller/TitleResolverTest.php, line 258

Class

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

Namespace

Drupal\Tests\Core\Controller

Code

public function example(\Stringable|string|array|null $value) {
  return $value;
}

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