You are here

Export.php in Openlayers 7.3

Control: Attribution.

File

modules/openlayers_library/src/Plugin/Control/Export/Export.php
View source
<?php

/**
 * @file
 * Control: Attribution.
 */
namespace Drupal\openlayers_library\Plugin\Control\Export;

use Drupal\openlayers\Types\Control;

/**
 * Class Export.
 *
 * @OpenlayersPlugin(
 *  id = "Export",
 *  description = "Export button"
 * )
 */
class Export extends Control {

  /**
   * {@inheritdoc}
   */
  public function optionsForm(array &$form, array &$form_state) {
    $form['options']['exportTipLabel'] = array(
      '#type' => 'textfield',
      '#title' => 'Label',
      '#default_value' => $this
        ->getOption('exportTipLabel', 'Export as image'),
    );
  }

}

Classes

Namesort descending Description
Export Class Export.