openlayers.api.php in Openlayers 7.3
Hooks for openlayers module.
File
openlayers.api.phpView source
<?php
/**
* @file
* Hooks for openlayers module.
*/
/**
* This hook will be triggered before a map is built and on each of its object.
*
* @param array $build
* The render array that will be rendered later.
* @param \Drupal\openlayers\Types\ObjectInterface $context
* The context, this will be an openlayers object.
*/
function hook_openlayers_object_preprocess_alter(array &$build, \Drupal\openlayers\Types\ObjectInterface $context) {
}
/**
* This hook will be triggered after a map is built and on each of its object.
*
* @param array $build
* The render array that will be rendered after this hook.
* @param \Drupal\openlayers\Types\ObjectInterface $context
* The context, this will be an openlayers object.
*/
function hook_openlayers_object_postprocess_alter(array &$build, \Drupal\openlayers\Types\ObjectInterface $context) {
}
/**
* This hook allows modules to provide their own maps.
*
* @return array
* Array of maps.
*/
function hook_default_openlayers_maps() {
}
/**
* This hook allows modules to alter default maps.
*
* @param array $exports
* Array of default maps.
*/
function hook_default_openlayers_maps_alter(&$exports) {
}
/**
* This hook allows modules to provide their own styles.
*
* @return array
* Array of styles.
*/
function hook_default_openlayers_styles() {
}
/**
* This hook allows modules to alter default styles.
*
* @param array $exports
* Array of default styles.
*/
function hook_default_openlayers_styles_alter(&$exports) {
}
/**
* This hook allows modules to provide their own layers.
*
* @return array
* Array of layers.
*/
function hook_default_openlayers_layers() {
}
/**
* This hook allows modules to alter default layers.
*
* @param array $exports
* Array of default layers.
*/
function hook_default_openlayers_layers_alter(&$exports) {
}
/**
* This hook allows modules to provide their own sources.
*
* @return array
* Array of sources.
*/
function hook_default_openlayers_sources() {
}
/**
* This hook allows modules to alter default sources.
*
* @param array $exports
* Array of default sources.
*/
function hook_default_openlayers_sources_alter(&$exports) {
}
/**
* This hook allows modules to provide their own controls.
*
* @return array
* Array of controls.
*/
function hook_default_openlayers_controls() {
}
/**
* This hook allows modules to alter default controls.
*
* @param array $exports
* Array of default controls.
*/
function hook_default_openlayers_controls_alter(&$exports) {
}
/**
* This hook allows modules to provide their own interactions.
*
* @return array
* Array of interactions.
*/
function hook_default_openlayers_interactions() {
}
/**
* This hook allows modules to alter default interactions.
*
* @param array $exports
* Array of default interactions.
*/
function hook_default_openlayers_interactions_alter(&$exports) {
}
/**
* This hook allows modules to provide their own components.
*
* @return array
* Array of components.
*/
function hook_default_openlayers_components() {
}
/**
* This hook allows modules to alter default components.
*
* @param array $exports
* Array of default components.
*/
function hook_default_openlayers_components_alter(&$exports) {
}
Functions
Name![]() |
Description |
---|---|
hook_default_openlayers_components | This hook allows modules to provide their own components. |
hook_default_openlayers_components_alter | This hook allows modules to alter default components. |
hook_default_openlayers_controls | This hook allows modules to provide their own controls. |
hook_default_openlayers_controls_alter | This hook allows modules to alter default controls. |
hook_default_openlayers_interactions | This hook allows modules to provide their own interactions. |
hook_default_openlayers_interactions_alter | This hook allows modules to alter default interactions. |
hook_default_openlayers_layers | This hook allows modules to provide their own layers. |
hook_default_openlayers_layers_alter | This hook allows modules to alter default layers. |
hook_default_openlayers_maps | This hook allows modules to provide their own maps. |
hook_default_openlayers_maps_alter | This hook allows modules to alter default maps. |
hook_default_openlayers_sources | This hook allows modules to provide their own sources. |
hook_default_openlayers_sources_alter | This hook allows modules to alter default sources. |
hook_default_openlayers_styles | This hook allows modules to provide their own styles. |
hook_default_openlayers_styles_alter | This hook allows modules to alter default styles. |
hook_openlayers_object_postprocess_alter | This hook will be triggered after a map is built and on each of its object. |
hook_openlayers_object_preprocess_alter | This hook will be triggered before a map is built and on each of its object. |