You are here

function callback in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Render/RendererCallbackTest.php \Drupal\Tests\Core\Render\callback()

A test render callback.

20 string references to 'callback'
BubbleableMetadataTest::providerTestMerge in core/tests/Drupal/Tests/Core/Render/BubbleableMetadataTest.php
Provides test data for testMerge().
d6_action.yml in core/modules/action/migrations/d6_action.yml
core/modules/action/migrations/d6_action.yml
d6_custom_block_translation.yml in core/modules/content_translation/migrations/d6_custom_block_translation.yml
core/modules/content_translation/migrations/d6_custom_block_translation.yml
d6_menu_links_translation.yml in core/modules/content_translation/migrations/d6_menu_links_translation.yml
core/modules/content_translation/migrations/d6_menu_links_translation.yml
d6_taxonomy_term_localized_translation.yml in core/modules/content_translation/migrations/d6_taxonomy_term_localized_translation.yml
core/modules/content_translation/migrations/d6_taxonomy_term_localized_translation.yml

... See full list

File

core/tests/Drupal/Tests/Core/Render/RendererCallbackTest.php, line 86

Namespace

Drupal\Tests\Core\Render

Code

function callback($element = []) {
  return $element;
}