public function DashboardBlock::buildConfigurationForm in Dashboards with Layout Builder 8
Same name and namespace in other branches
- 2.0.x src/Plugin/Block/DashboardBlock.php \Drupal\dashboards\Plugin\Block\DashboardBlock::buildConfigurationForm()
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/ DashboardBlock.php, line 67
Class
- DashboardBlock
- Provides a dashboard block.
Namespace
Drupal\dashboards\Plugin\BlockCode
public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
$form = parent::buildConfigurationForm($form, $form_state);
return $this->basePlugin
->buildSettingsForm($form, $form_state, $this
->getConfiguration());
}