public function BlockFieldTestValidationBlock::blockForm in Block field 8
Overrides BlockPluginTrait::blockForm
File
- tests/
modules/ block_field_test/ src/ Plugin/ Block/ BlockFieldTestValidationBlock.php, line 31
Class
- BlockFieldTestValidationBlock
- Provides a 'Block field test validation' block.
Namespace
Drupal\block_field_test\Plugin\BlockCode
public function blockForm($form, FormStateInterface $form_state) {
$form['content'] = [
'#type' => 'textfield',
'#title' => $this
->t('Content'),
'#default_value' => $this->configuration['content'],
];
return $form;
}