function ManagedFileTest::managedFileValueCallback
An untrusted #file_value_callbacks callback.
File
-
core/
modules/ file/ tests/ src/ Kernel/ ManagedFileTest.php, line 65
Class
- ManagedFileTest
- Managed file element test.
Namespace
Drupal\Tests\file\KernelCode
public function managedFileValueCallback(array &$element, $input, FormStateInterface $form_state) : void {
$form_state->set('managedFileValueCallbackExecuted', TRUE);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.