public function TestAjaxBlock::ajaxCallback in Drupal 8
Same name and namespace 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()
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'];
}