openlayers-8.x-4.x-dev/src/Plugin/Component/LazyProcessing/LazyProcessing.php

src/Plugin/Component/LazyProcessing/LazyProcessing.php
<?php

namespace Drupal\openlayers\Plugin\Component\LazyProcessing;

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

/**
 * FIX - Insert short comment here.
 *
 * @OpenlayersPlugin(
 *   id = "ol_component_lazyprocessing",
 *   label = @Translation("Lazy Processing"),
 *   description = @Translation("TODO..."),
 *   service = "openlayers.Component:LazyProcessing",
 *   library = "openlayers-plugin-component-lazyprocessing",
 *   is_configurable = "true",
 *   type = "component"
 * )
 */
class LazyProcessing extends Component {

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

    $form['documentation'] = array(
      '#type' => 'fieldset',
      '#title' => t('How to use'),
      '#description' => t('If this component is attached to a map you need to start the map processing / display manually by executing following code from a custom javascript: <pre>Drupal.openlayers.asyncIsReady("[map_id]");</pre>'),
    );

    return $form;
  }

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

  }

  /**
   * {@inheritdoc}
   */
  public function isAsynchronous() {
    return TRUE;
  }

}

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

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