Files
contao-leaflet-maps/src/Mapper/Layer/AbstractLayerMapper.php

42 lines
979 B
PHP
Raw Normal View History

2015-01-06 14:55:53 +01:00
<?php
/**
2017-10-05 15:45:43 +02:00
* Leaflet maps for Contao CMS.
*
2016-10-11 10:40:15 +02:00
* @package contao-leaflet-maps
2015-01-06 14:55:53 +01:00
* @author David Molineus <david.molineus@netzmacht.de>
2017-10-05 15:45:43 +02:00
* @copyright 2016-2017 netzmacht David Molineus. All rights reserved.
* @license LGPL-3.0 https://github.com/netzmacht/contao-leaflet-maps/blob/master/LICENSE
2015-01-06 14:55:53 +01:00
* @filesource
*/
namespace Netzmacht\Contao\Leaflet\Mapper\Layer;
use Netzmacht\Contao\Leaflet\Mapper\AbstractTypeMapper;
2017-10-11 14:50:14 +02:00
use Netzmacht\Contao\Leaflet\Model\LayerModel;
2015-01-06 14:55:53 +01:00
2015-01-12 19:03:29 +01:00
/**
* Class AbstractLayerMapper is the base mapper for the layer model.
*
* @package Netzmacht\Contao\Leaflet\Mapper\Layer
*/
2015-01-06 14:55:53 +01:00
class AbstractLayerMapper extends AbstractTypeMapper
{
/**
* Class of the model being build.
*
* @var string
*/
2017-10-11 14:50:14 +02:00
protected static $modelClass = LayerModel::class;
2015-01-06 18:49:22 +01:00
2015-01-12 19:03:29 +01:00
/**
* {@inheritdoc}
*/
2015-01-06 18:49:22 +01:00
protected function initialize()
{
parent::initialize();
$this->optionsBuilder->addOption('label', 'title');
2015-01-06 18:49:22 +01:00
}
2015-01-06 14:55:53 +01:00
}