class TitleClosureCallback

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/Tests/Core/Controller/TitleResolverTest.php \Drupal\Tests\Core\Controller\TitleClosureCallback

Provides an example title closure for the testTitleClosure method above.

Hierarchy

Expanded class hierarchy of TitleClosureCallback

File

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

Namespace

Drupal\Tests\Core\Controller
View source
class TitleClosureCallback {
  
  /**
   * A controller with a title closure on its route attribute.
   *
   * @return array
   *   A render array.
   */
  public function example(string $value) : array {
    return [];
  }

}

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