You are here

Attribution.php in Openlayers 7.3

Control: Attribution.

File

src/Plugin/Control/Attribution/Attribution.php
View source
<?php

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

use Drupal\openlayers\Types\Control;

/**
 * Class Attribution.
 *
 * @OpenlayersPlugin(
 *  id = "Attribution",
 *  description = "Provides a control to show all the attributions associated with the layer sources in the map."
 * )
 */
class Attribution extends Control {

  /**
   * {@inheritdoc}
   */
  public function optionsForm(array &$form, array &$form_state) {
    $form['options']['collapsible'] = array(
      '#type' => 'checkbox',
      '#title' => t('Collapsible'),
      '#default_value' => $this
        ->getOption('collapsible'),
    );
  }

}

Classes

Namesort descending Description
Attribution Class Attribution.