You are here

public function GeolocationBlock::addLocation in Geolocation Field 8.3

Same name and namespace in other branches
  1. 8.2 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 282

Class

GeolocationBlock
Exposes a map rendered as a block.

Namespace

Drupal\geolocation\Plugin\Block

Code

public function addLocation(array &$form, FormStateInterface &$form_state) {
  return $form['settings']['locations'];
}