FormBuilder::$safeCoreValueCallables
Same name in other branches
- 9 core/lib/Drupal/Core/Form/FormBuilder.php \Drupal\Core\Form\FormBuilder::safeCoreValueCallables
- 8.9.x core/lib/Drupal/Core/Form/FormBuilder.php \Drupal\Core\Form\FormBuilder::safeCoreValueCallables
- 11.x core/lib/Drupal/Core/Form/FormBuilder.php \Drupal\Core\Form\FormBuilder::safeCoreValueCallables
Defines callables that are safe to run with invalid CSRF tokens.
These Element value callables are safe to run even when the form state has an invalid CSRF token.
Excluded from this list on purpose:
- Drupal\file\Element\ManagedFile::valueCallback
- Drupal\Core\Datetime\Element\Datelist::valueCallback
- Drupal\Core\Datetime\Element\Datetime::valueCallback
- Drupal\Core\Render\Element\ImageButton::valueCallback
- Drupal\file\Plugin\Field\FieldWidget\FileWidget::value
- color_palette_color_value
Type: array
File
-
core/
lib/ Drupal/ Core/ Form/ FormBuilder.php, line 126
Class
- FormBuilder
- Provides form building and processing.
Namespace
Drupal\Core\FormCode
protected $safeCoreValueCallables = [
'Drupal\\Core\\Render\\Element\\Checkbox::valueCallback',
'Drupal\\Core\\Render\\Element\\Checkboxes::valueCallback',
'Drupal\\Core\\Render\\Element\\Email::valueCallback',
'Drupal\\Core\\Render\\Element\\FormElementBase::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',
];
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.