You are here

public function TestSettingsValidationBlock::blockForm in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/block/tests/modules/block_test/src/Plugin/Block/TestSettingsValidationBlock.php \Drupal\block_test\Plugin\Block\TestSettingsValidationBlock::blockForm()

Overrides BlockPluginTrait::blockForm

File

core/modules/block/tests/modules/block_test/src/Plugin/Block/TestSettingsValidationBlock.php, line 21

Class

TestSettingsValidationBlock
Provides a test settings validation block.

Namespace

Drupal\block_test\Plugin\Block

Code

public function blockForm($form, FormStateInterface $form_state) {
  return [
    'digits' => [
      '#type' => 'textfield',
    ],
  ] + $form;
}