public function DataPolicyInformBlock::buildConfigurationForm in Data Policy 8
Creates a generic configuration form for all block types. Individual block plugins can add elements to this form by overriding BlockBase::blockForm(). Most block plugins should not override this method unless they need to alter the generic form elements.
Overrides BlockPluginTrait::buildConfigurationForm
See also
\Drupal\Core\Block\BlockBase::blockForm()
File
- src/
Plugin/ Block/ DataPolicyInformBlock.php, line 172
Class
- DataPolicyInformBlock
- Provides a 'Data Policy' block.
Namespace
Drupal\data_policy\Plugin\BlockCode
public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
$form = parent::buildConfigurationForm($form, $form_state);
$form['label']['#disabled'] = $form['label_display']['#disabled'] = TRUE;
return $form;
}