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