function BigPipeTestController::displayName

Same name and namespace in other branches
  1. main core/modules/big_pipe/tests/modules/big_pipe_test/src/BigPipeTestController.php \Drupal\big_pipe_test\BigPipeTestController::displayName()

Render API callback: Builds a fixed display name.

This function is assigned as a #lazy_builder callback.

Return value

array A render array with a fixed name as plain text.

File

core/modules/big_pipe/tests/modules/big_pipe_test/src/BigPipeTestController.php, line 147

Class

BigPipeTestController
Returns responses for Big Pipe routes.

Namespace

Drupal\big_pipe_test

Code

public static function displayName() : array {
  return [
    '#plain_text' => self::DISPLAY_NAME,
  ];
}

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