Fix broken content element attributes (Missing class and custom id).

This commit is contained in:
David Molineus
2018-10-08 16:26:04 +02:00
parent 88927a3de8
commit 873de89d7c
2 changed files with 10 additions and 0 deletions

View File

@@ -119,6 +119,8 @@ abstract class AbstractMapHybrid extends AbstractHybrid
*/
protected function prepareTemplateData(array $data): array
{
$data = parent::prepareTemplateData($data);
try {
$template = $this->get('leaflet_template') ?: 'leaflet_map_js';
$mapId = $this->getIdentifier();