public function ContactBlock::defaultConfiguration in Contact Block 8
Overrides BlockPluginTrait::defaultConfiguration
File
- src/
Plugin/ Block/ ContactBlock.php, line 162
Class
- ContactBlock
- Provides a 'ContactBlock' block.
Namespace
Drupal\contact_block\Plugin\BlockCode
public function defaultConfiguration() {
$default_form = $this->configFactory
->get('contact.settings')
->get('default_form');
return [
'label' => $this
->t('Contact block'),
'contact_form' => $default_form,
];
}