You are here

function hook_geolocation_field_map_widget_alter in Geolocation Field 8.3

Same name and namespace in other branches
  1. 8.2 geolocation.api.php \hook_geolocation_field_map_widget_alter()

Alter the map based widgets.


  $context = [
    'widget' => \Drupal\geolocation\Plugin\Field\FieldWidget\GeolocationMapWidgetBase
    'form_state' => \Drupal\Core\Form\FormStateInterface $form_state
    'field_definition' => \Drupal\Core\Field\FieldDefinitionInterface $field_definition
  ];

Parameters

array $element: Element.

mixed $context: Context.

See also

\Drupal\geolocation\Plugin\Field\FieldWidget\GeolocationMapWidgetBase

1 function implements hook_geolocation_field_map_widget_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

geolocation_address_geolocation_field_map_widget_alter in modules/geolocation_address/geolocation_address.module
Implements hook_geolocation_field_map_widget_alter().
1 invocation of hook_geolocation_field_map_widget_alter()
GeolocationMapWidgetBase::form in src/Plugin/Field/FieldWidget/GeolocationMapWidgetBase.php
Creates a form element for a field.

File

./geolocation.api.php, line 26
Hooks provided by the geolocation module.

Code

function hook_geolocation_field_map_widget_alter(array &$element, $context) {

  // Do something.
}