forked from Snck3rs/contao-leaflet-maps
Rework libraries handling so that libraries don't have to be ported to contao 4.4 only yet.
This commit is contained in:
@@ -84,3 +84,11 @@ $GLOBALS['TL_MODELS']['tl_leaflet_marker'] = \Netzmacht\Contao\Leaflet\Model\Ma
|
||||
$GLOBALS['TL_MODELS']['tl_leaflet_popup'] = \Netzmacht\Contao\Leaflet\Model\PopupModel::class;
|
||||
$GLOBALS['TL_MODELS']['tl_leaflet_style'] = \Netzmacht\Contao\Leaflet\Model\StyleModel::class;
|
||||
$GLOBALS['TL_MODELS']['tl_leaflet_vector'] = \Netzmacht\Contao\Leaflet\Model\VectorModel::class;
|
||||
|
||||
/*
|
||||
* Hooks.
|
||||
*/
|
||||
$GLOBALS['TL_HOOKS']['initializeSystem'][] = [
|
||||
'netzmacht.contao_leaflet_maps.listeners.register_libraries',
|
||||
'onInitializeSystem'
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user