mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2026-10-14 14:46:12 +02:00
Rework element id generation.
This commit is contained in:
1 parent
37851110b0
commit
efb36256c7
12 files changed
+128
-88
No files matched your search
@@ -39,9 +39,13 @@ class MarkerMapper extends AbstractMapper
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function buildConstructArguments(\Model $model, DefinitionMapper $mapper, LatLngBounds $bounds = null)
|
||||
{
|
||||
$arguments = parent::buildConstructArguments($model, $mapper, $bounds);
|
||||
protected function buildConstructArguments(
|
||||
\Model $model,
|
||||
DefinitionMapper $mapper,
|
||||
LatLngBounds $bounds = null,
|
||||
$elementId = null
|
||||
) {
|
||||
$arguments = parent::buildConstructArguments($model, $mapper, $bounds, $elementId);
|
||||
$arguments[] = $model->coordinates ?: null;
|
||||
|
||||
return $arguments;
|
||||
|
||||
Reference in new issue
Block a user