You are here

public function HubspotBlock::blockSubmit in Hubspot forms 8

Overrides BlockPluginTrait::blockSubmit

File

src/Plugin/Block/HubspotBlock.php, line 48

Class

HubspotBlock
Display Hubspot Form.

Namespace

Drupal\hubspot_forms\Plugin\Block

Code

public function blockSubmit($form, FormStateInterface $form_state) {
  $this->configuration['form_id'] = $form_state
    ->getValue('form_id');
}