function ComponentElement::valueCallback

Returns NULL to let the Form API fall back to #default_value or #value. Components delegate actual value rendering to the Twig template via the form_state prop, so no server-side value transformation is needed here.

File

core/lib/Drupal/Core/Render/Element/ComponentElement.php, line 205

Class

ComponentElement
Provides a Single-Directory Component render element.

Namespace

Drupal\Core\Render\Element

Code

public static function valueCallback(&$element, $input, FormStateInterface $form_state) {
  return NULL;
}

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