function LayoutTest::processCallback
Same name in other branches
- 9 core/modules/layout_discovery/tests/src/Kernel/LayoutTest.php \Drupal\Tests\layout_discovery\Kernel\LayoutTest::processCallback()
- 8.9.x core/modules/layout_discovery/tests/src/Kernel/LayoutTest.php \Drupal\Tests\layout_discovery\Kernel\LayoutTest::processCallback()
- 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 234
Class
- LayoutTest
- Tests Layout functionality.
Namespace
Drupal\Tests\layout_discovery\KernelCode
public static function processCallback($element) {
$element['#markup'] = 'This string added by #process.';
return $element;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.