function ElementInfoTestNumberBuilder::preRender

Same name and namespace in other branches
  1. 11.x core/modules/system/tests/modules/element_info_test/src/ElementInfoTestNumberBuilder.php \Drupal\element_info_test\ElementInfoTestNumberBuilder::preRender()

Sets element_info_test - #pre_render callback.

File

core/modules/system/tests/modules/element_info_test/src/ElementInfoTestNumberBuilder.php, line 24

Class

ElementInfoTestNumberBuilder
Provides a trusted callback to alter the element_info_test number element.

Namespace

Drupal\element_info_test

Code

public static function preRender(array $element) : array {
    return $element;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.