You are here

LazyProcessing.php in Openlayers 7.3

Component: LazyProcessing.

File

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

/**
 * @file
 * Component: LazyProcessing.
 */
namespace Drupal\openlayers\Plugin\Component\LazyProcessing;

use Drupal\openlayers\Types\Component;

/**
 * Class LazyProcessing.
 *
 * @OpenlayersPlugin(
 *  id = "LazyProcessing"
 * )
 */
class LazyProcessing extends Component {

  /**
   * {@inheritdoc}
   */
  public function optionsForm(array &$form, array &$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>'),
    );
  }

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

}

Classes

Namesort descending Description
LazyProcessing Class LazyProcessing.