public function ColorizedGmapBlock::stylesUpdateCallback in Colorized google maps block 8
Callback for both ajax-enabled buttons.
Selects and returns the fieldset with the names in it.
Parameters
array $form: Form array.
\Drupal\Core\Form\FormStateInterface $form_state: Form state.
Return value
mixed Colorized map styles settings.
File
- src/
Plugin/ Block/ ColorizedGmapBlock.php, line 481
Class
- ColorizedGmapBlock
- Provides a 'Example: configurable text string' block.
Namespace
Drupal\colorized_gmap\Plugin\BlockCode
public function stylesUpdateCallback(array &$form, FormStateInterface $form_state) {
return $form['settings']['colorized_map_styles'];
}