public function GeolocationBlock::addLocation in Geolocation Field 8.2
Same name and namespace in other branches
- 8.3 src/Plugin/Block/GeolocationBlock.php \Drupal\geolocation\Plugin\Block\GeolocationBlock::addLocation()
Add location.
Parameters
array $form: Current form.
\Drupal\Core\Form\FormStateInterface $form_state: Current form state.
Return value
array Render array.
File
- src/
Plugin/ Block/ GeolocationBlock.php, line 246
Class
- GeolocationBlock
- Exposes a map rendered as a block.
Namespace
Drupal\geolocation\Plugin\BlockCode
public function addLocation(array &$form, FormStateInterface &$form_state) {
return $form['settings']['locations'];
}