You are here

public static function LayoutTest::processCallback in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/layout_discovery/tests/src/Kernel/LayoutTest.php \Drupal\Tests\layout_discovery\Kernel\LayoutTest::processCallback()
  2. 10 core/modules/layout_discovery/tests/src/Kernel/LayoutTest.php \Drupal\Tests\layout_discovery\Kernel\LayoutTest::processCallback()

Provides a test #process callback.

File

core/modules/layout_discovery/tests/src/Kernel/LayoutTest.php, line 232

Class

LayoutTest
Tests Layout functionality.

Namespace

Drupal\Tests\layout_discovery\Kernel

Code

public static function processCallback($element) {
  $element['#markup'] = 'This string added by #process.';
  return $element;
}