W3cubDocs

/Drupal 8

protected property FormBuilder::$safeCoreValueCallables

Defines element value callables which are safe to run even when the form state has an invalid CSRF token.

Excluded from this list on purpose:

Type: array

File

core/lib/Drupal/Core/Form/FormBuilder.php, line 117

Class

FormBuilder
Provides form building and processing.

Namespace

Drupal\Core\Form

Code

protected $safeCoreValueCallables = [
  'Drupal\Core\Render\Element\Checkbox::valueCallback',
  'Drupal\Core\Render\Element\Checkboxes::valueCallback',
  'Drupal\Core\Render\Element\Email::valueCallback',
  'Drupal\Core\Render\Element\FormElement::valueCallback',
  'Drupal\Core\Render\Element\MachineName::valueCallback',
  'Drupal\Core\Render\Element\Number::valueCallback',
  'Drupal\Core\Render\Element\PathElement::valueCallback',
  'Drupal\Core\Render\Element\Password::valueCallback',
  'Drupal\Core\Render\Element\PasswordConfirm::valueCallback',
  'Drupal\Core\Render\Element\Radio::valueCallback',
  'Drupal\Core\Render\Element\Radios::valueCallback',
  'Drupal\Core\Render\Element\Range::valueCallback',
  'Drupal\Core\Render\Element\Search::valueCallback',
  'Drupal\Core\Render\Element\Select::valueCallback',
  'Drupal\Core\Render\Element\Tableselect::valueCallback',
  'Drupal\Core\Render\Element\Table::valueCallback',
  'Drupal\Core\Render\Element\Tel::valueCallback',
  'Drupal\Core\Render\Element\Textarea::valueCallback',
  'Drupal\Core\Render\Element\Textfield::valueCallback',
  'Drupal\Core\Render\Element\Token::valueCallback',
  'Drupal\Core\Render\Element\Url::valueCallback',
  'Drupal\Core\Render\Element\Weight::valueCallback',
];

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Form!FormBuilder.php/property/FormBuilder::safeCoreValueCallables/8.1.x