public function MapCenterBase::alterMap in Geolocation Field 8.2
Same name and namespace in other branches
- 8.3 src/MapCenterBase.php \Drupal\geolocation\MapCenterBase::alterMap()
Alter map..
Parameters
array $map: Map object.
int $center_option_id: MapCenter option ID.
array $center_option_settings: The current feature settings.
mixed $context: Context like field formatter, field widget or view.
Return value
array Map object.
Overrides MapCenterInterface::alterMap
4 calls to MapCenterBase::alterMap()
- ClientLocation::alterMap in src/
Plugin/ geolocation/ MapCenter/ ClientLocation.php - Alter map..
- FitLocations::alterMap in src/
Plugin/ geolocation/ MapCenter/ FitLocations.php - Alter map..
- ViewsBoundaryArgument::alterMap in src/
Plugin/ geolocation/ MapCenter/ ViewsBoundaryArgument.php - Alter map..
- ViewsBoundaryFilter::alterMap in src/
Plugin/ geolocation/ MapCenter/ ViewsBoundaryFilter.php - Alter map..
5 methods override MapCenterBase::alterMap()
- ClientLocation::alterMap in src/
Plugin/ geolocation/ MapCenter/ ClientLocation.php - Alter map..
- FitLocations::alterMap in src/
Plugin/ geolocation/ MapCenter/ FitLocations.php - Alter map..
- Location::alterMap in src/
Plugin/ geolocation/ MapCenter/ Location.php - Alter map..
- ViewsBoundaryArgument::alterMap in src/
Plugin/ geolocation/ MapCenter/ ViewsBoundaryArgument.php - Alter map..
- ViewsBoundaryFilter::alterMap in src/
Plugin/ geolocation/ MapCenter/ ViewsBoundaryFilter.php - Alter map..
File
- src/
MapCenterBase.php, line 71
Class
- MapCenterBase
- Class MapCenterBase.
Namespace
Drupal\geolocationCode
public function alterMap(array $map, $center_option_id, array $center_option_settings, $context = NULL) {
$map['#centre'] = [
'lat' => 0,
'lng' => 0,
];
return $map;
}