You are here

public function TestAjaxBlock::ajaxCallback in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/Block/TestAjaxBlock.php \Drupal\layout_builder_test\Plugin\Block\TestAjaxBlock::ajaxCallback()
  2. 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\Block

Code

public function ajaxCallback($form, $form_state) {
  return $form['settings']['ajax_test'];
}