class ElementInfoTestNumberBuilder
Same name in other branches
- 11.x core/modules/system/tests/modules/element_info_test/src/ElementInfoTestNumberBuilder.php \Drupal\element_info_test\ElementInfoTestNumberBuilder
Provides a trusted callback to alter the element_info_test number element.
Hierarchy
- class \Drupal\element_info_test\ElementInfoTestNumberBuilder implements \Drupal\Core\Security\TrustedCallbackInterface
Expanded class hierarchy of ElementInfoTestNumberBuilder
See also
element_info_test_element_info_alter()
2 files declare their use of ElementInfoTestNumberBuilder
- element_info_test.module in core/
modules/ system/ tests/ modules/ element_info_test/ element_info_test.module - Element info test.
- WeightTest.php in core/
tests/ Drupal/ KernelTests/ Core/ Render/ Element/ WeightTest.php
File
-
core/
modules/ system/ tests/ modules/ element_info_test/ src/ ElementInfoTestNumberBuilder.php, line 12
Namespace
Drupal\element_info_testView source
class ElementInfoTestNumberBuilder implements TrustedCallbackInterface {
/**
* {@inheritdoc}
*/
public static function trustedCallbacks() {
return [
'preRender',
];
}
/**
* Sets element_info_test - #pre_render callback.
*/
public static function preRender(array $element) : array {
return $element;
}
}
Members
Title Sort descending | Deprecated | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|---|
ElementInfoTestNumberBuilder::preRender | public static | function | Sets element_info_test - #pre_render callback. | ||
ElementInfoTestNumberBuilder::trustedCallbacks | public static | function | Overrides TrustedCallbackInterface::trustedCallbacks | ||
TrustedCallbackInterface::THROW_EXCEPTION | constant | Untrusted callbacks throw exceptions. | |||
TrustedCallbackInterface::TRIGGER_SILENCED_DEPRECATION | constant | Untrusted callbacks trigger silenced E_USER_DEPRECATION errors. | |||
TrustedCallbackInterface::TRIGGER_WARNING | Deprecated | constant | Untrusted callbacks trigger E_USER_WARNING errors. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.