function TestAjaxBlock::ajaxCallback
Same name in other branches
- 9 core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/Block/TestAjaxBlock.php \Drupal\layout_builder_test\Plugin\Block\TestAjaxBlock::ajaxCallback()
- 10 core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/Block/TestAjaxBlock.php \Drupal\layout_builder_test\Plugin\Block\TestAjaxBlock::ajaxCallback()
- 11.x core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/Block/TestAjaxBlock.php \Drupal\layout_builder_test\Plugin\Block\TestAjaxBlock::ajaxCallback()
Ajax callback.
File
-
core/
modules/ layout_builder/ tests/ modules/ layout_builder_test/ src/ Plugin/ Block/ TestAjaxBlock.php, line 45
Class
- TestAjaxBlock
- Provides a 'TestAjax' block.
Namespace
Drupal\layout_builder_test\Plugin\BlockCode
public function ajaxCallback($form, $form_state) {
return $form['settings']['ajax_test'];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.