openlayers-8.x-4.x-dev/src/Plugin/Source/TileJSON/TileJSON.php

src/Plugin/Source/TileJSON/TileJSON.php
<?php

namespace Drupal\openlayers\Plugin\Source\TileJSON;

use Drupal\openlayers\Types\Source;

/**
 * FIX - Insert short comment here.
 *
 * @OpenlayersPlugin(
 *   id = "ol_source_tilejson",
 *   label = @Translation("Tile JSON"),
 *   description = @Translation("TODO..."),
 *   service = "openlayers.Source:TileJSON",
 *   library = "openlayers-plugin-source-tilejson",
 *   is_configurable = "true",
 *   type = "source"
 * )
 */
class TileJSON 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'),
    );
  }

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc