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

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

namespace Drupal\openlayers\Plugin\Source\Vector;

use Drupal\openlayers\Types\Source;
use Drupal\Core\Form\FormStateInterface;

/**
 * Defines a Vector source for an Openlayers map.
 *
 * @OpenlayersPlugin(
 *   id = "ol_source_vector",
 *   label = @Translation("Vector"),
 *   description = @Translation("Define a vector source."),
 *   service = "openlayers.Source:Vector",
 *   library = "openlayers-plugin-source-vector",
 *   is_configurable = "true",
 *   type = "source"
 * )
 */
class Vector extends Source {

  /**
   * {@inheritdoc}
   */
  public function buildConfigurationForm(array $form, FormStateInterface $form_state) {

    return $form;
  }

  /**
   * {@inheritdoc}
   */
  public function validateConfigurationForm(array &$form, FormStateInterface $form_state) {

  }

  /**
   * {@inheritdoc}
   */
  public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
    parent::submitConfigurationForm($form, $form_state);

  }

}

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

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