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