mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2025-12-04 13:58:39 +01:00
Add providers plugin.
This commit is contained in:
23
src/Netzmacht/Contao/Leaflet/Mapper/AbstractLayerMapper.php
Normal file
23
src/Netzmacht/Contao/Leaflet/Mapper/AbstractLayerMapper.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package dev
|
||||
* @author David Molineus <david.molineus@netzmacht.de>
|
||||
* @copyright 2014 netzmacht creative David Molineus
|
||||
* @license LGPL 3.0
|
||||
* @filesource
|
||||
*
|
||||
*/
|
||||
|
||||
namespace Netzmacht\Contao\Leaflet\Mapper;
|
||||
|
||||
|
||||
abstract class AbstractLayerMapper extends AbstractMapper
|
||||
{
|
||||
protected static $type;
|
||||
|
||||
public function match(\Model $model)
|
||||
{
|
||||
return parent::match($model) && $model->type === static::$type;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user