public function FacetBlock::blockSubmit in Facets 8
Overrides BlockPluginTrait::blockSubmit
File
- src/
Plugin/ Block/ FacetBlock.php, line 166
Class
- FacetBlock
- Exposes a facet rendered as a block.
Namespace
Drupal\facets\Plugin\BlockCode
public function blockSubmit($form, FormStateInterface $form_state) {
// Checks for a valid form id. Panelizer does not generate one.
if (isset($form['id']['#value'])) {
// Save block id to configuration, we do this for loading the original
// block with ajax.
$block_id = $form['id']['#value'];
$this->configuration['block_id'] = $block_id;
}
}