You are here

public function ContactFormBlock::defaultConfiguration in Form Block 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/Block/ContactFormBlock.php \Drupal\formblock\Plugin\Block\ContactFormBlock::defaultConfiguration()

Overrides \Drupal\block\BlockBase::settings().

Overrides BlockPluginTrait::defaultConfiguration

File

src/Plugin/Block/ContactFormBlock.php, line 141

Class

ContactFormBlock
Provides a block for contact form.

Namespace

Drupal\formblock\Plugin\Block

Code

public function defaultConfiguration() {
  return [
    'contact_form' => $this->configFactory
      ->get('contact.settings')
      ->get('default_form'),
  ];
}