You are here

function callback in Drupal 10

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

A test render callback.

107 string references to 'callback'
Action::fields in core/modules/system/src/Plugin/migrate/source/Action.php
Returns available fields on the source.
ActionAjaxTest::buildConfigurationForm in core/modules/action/tests/action_form_ajax_test/src/Plugin/Action/ActionAjaxTest.php
Form constructor.
ActionTest::providerSource in core/modules/system/tests/src/Kernel/Plugin/migrate/source/ActionTest.php
The data provider.
AddFormBase::buildActions in core/modules/media_library/src/Form/AddFormBase.php
Returns an array of supported actions for the form.
AddFormBase::buildEntityFormElement in core/modules/media_library/src/Form/AddFormBase.php
Builds the sub-form for setting required fields on a new media item.

... 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;
}