openlayers-8.x-4.x-dev/src/Plugin/Source/TileUTFGrid/TileUTFGrid.php
src/Plugin/Source/TileUTFGrid/TileUTFGrid.php
<?php
namespace Drupal\openlayers\Plugin\Source\TileUTFGrid;
use Drupal\openlayers\Types\Source;
/**
* FIX - Insert short comment here.
*
* @OpenlayersPlugin(
* id = "ol_source_tileutfgrid",
* label = @Translation("Tile UTF Grid"),
* description = @Translation("TODO..."),
* service = "openlayers.Source:TileUTFGrid",
* library = "openlayers-plugin-source-tileuftgrid",
* is_configurable = "true",
* type = "source"
* )
*/
class TileUTFGrid extends Source {
/**
* {@inheritdoc}
*/
public function optionsForm(array &$form, array &$form_state) {
$form['options']['url'] = array(
'#title' => t('URL'),
'#type' => 'textfield',
'#default_value' => $this->getOption('url'),
);
}
}
