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\Kernel

Code

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.