ElementInfoTestNumberBuilder.php
Same filename in other branches
Namespace
Drupal\element_info_testFile
-
core/
modules/ system/ tests/ modules/ element_info_test/ src/ ElementInfoTestNumberBuilder.php
View source
<?php
namespace Drupal\element_info_test;
use Drupal\Core\Security\TrustedCallbackInterface;
/**
* Provides a trusted callback to alter the element_info_test number element.
*
* @see element_info_test_element_info_alter()
*/
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;
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
ElementInfoTestNumberBuilder | Provides a trusted callback to alter the element_info_test number element. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.