public function TestSettingsValidationBlock::blockForm in Drupal 8
Same name and namespace in other branches
- 9 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\BlockCode
public function blockForm($form, FormStateInterface $form_state) {
return [
'digits' => [
'#type' => 'textfield',
],
] + $form;
}