public function HierarchicalTaxonomyMenuBlock::blockSubmit in Hierarchical Taxonomy Menu 8
Overrides BlockPluginTrait::blockSubmit
File
- src/
Plugin/ Block/ HierarchicalTaxonomyMenuBlock.php, line 460
Class
- HierarchicalTaxonomyMenuBlock
- Provides a 'HierarchicalTaxonomyMenuBlock' block.
Namespace
Drupal\hierarchical_taxonomy_menu\Plugin\BlockCode
public function blockSubmit($form, FormStateInterface $form_state) {
$this->configuration['vocabulary'] = $form_state
->getValue([
'basic',
'vocabulary',
]);
$this->configuration['max_depth'] = $form_state
->getValue([
'basic',
'max_depth',
]);
$this->configuration['dynamic_block_title'] = $form_state
->getValue([
'basic',
'dynamic_block_title',
]);
$this->configuration['collapsible'] = $form_state
->getValue([
'basic',
'collapsible',
]);
$this->configuration['stay_open'] = $form_state
->getValue([
'basic',
'stay_open',
]);
$this->configuration['interactive_parent'] = $form_state
->getValue([
'basic',
'interactive_parent',
]);
$this->configuration['hide_block'] = $form_state
->getValue([
'basic',
'hide_block',
]);
$this->configuration['use_image_style'] = $form_state
->getValue([
'image',
'use_image_style',
]);
$this->configuration['image_height'] = $form_state
->getValue([
'image',
'image_height',
]);
$this->configuration['image_width'] = $form_state
->getValue([
'image',
'image_width',
]);
$this->configuration['image_style'] = $form_state
->getValue([
'image',
'image_style',
]);
$this->configuration['max_age'] = $form_state
->getValue([
'advanced',
'max_age',
]);
$this->configuration['base_term'] = $form_state
->getValue([
'advanced',
'base_term',
]);
$this->configuration['dynamic_base_term'] = $form_state
->getValue([
'advanced',
'dynamic_base_term',
]);
$this->configuration['show_count'] = $form_state
->getValue([
'advanced',
'show_count',
]);
$this->configuration['referencing_field'] = $form_state
->getValue([
'advanced',
'referencing_field',
]);
$this->configuration['calculate_count_recursively'] = $form_state
->getValue([
'advanced',
'calculate_count_recursively',
]);
}