function ManagedFileTest::managedFileValueCallbackTrusted

A #file_value_callbacks callback trusted via the TrustedCallback attribute.

Attributes

#[TrustedCallback]

File

core/modules/file/tests/src/Kernel/ManagedFileTest.php, line 57

Class

ManagedFileTest
Managed file element test.

Namespace

Drupal\Tests\file\Kernel

Code

public function managedFileValueCallbackTrusted(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.