function DatelistElementFormTest::datelistDateCallback
Same name in other branches
- 9 core/tests/Drupal/KernelTests/Core/Datetime/DatelistElementFormTest.php \Drupal\KernelTests\Core\Datetime\DatelistElementFormTest::datelistDateCallback()
- 10 core/tests/Drupal/KernelTests/Core/Datetime/DatelistElementFormTest.php \Drupal\KernelTests\Core\Datetime\DatelistElementFormTest::datelistDateCallback()
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Datetime/ DatelistElementFormTest.php, line 55
Class
- DatelistElementFormTest
- Tests Datelist functionality.
Namespace
Drupal\KernelTests\Core\DatetimeCode
public function datelistDateCallback(array &$element, FormStateInterface $form_state, ?DrupalDateTime $date = NULL) {
$element['datelistDateCallbackExecuted'] = [
'#value' => TRUE,
];
$form_state->set('datelistDateCallbackExecuted', TRUE);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.