You are here

BootstrapjsPopup.php in Openlayers 7.3

Component: Bootstap JS Popup.

File

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

/**
 * @file
 * Component: Bootstap JS Popup.
 */
namespace Drupal\openlayers\Plugin\Component\BootstrapjsPopup;

use Drupal\openlayers\Types\Component;

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

  /**
   * {@inheritdoc}
   */
  public function attached() {
    $attached = parent::attached();
    $attached['libraries_load'][] = array(
      'bootstrap',
    );
    return $attached;
  }

  /**
   * {@inheritdoc}
   */
  public function dependencies() {
    return array(
      'bootstrap_library',
    );
  }

}

Classes

Namesort descending Description
BootstrapjsPopup Class BootstrapjsPopup.