openlayers-8.x-4.x-dev/src/Plugin/Component/BootstrapjsPopup/BootstrapjsPopup.php
src/Plugin/Component/BootstrapjsPopup/BootstrapjsPopup.php
<?php
namespace Drupal\openlayers\Plugin\Component\BootstrapjsPopup;
use Drupal\Core\Form\FormStateInterface;
use Drupal\openlayers\Types\Component;
/**
* FIX - Insert short comment here.
*
* @OpenlayersPlugin(
* id = "ol_component_bootstrapjspopup",
* label = @Translation("Bootstrap JS Popup"),
* description = @Translation("TODO..."),
* service = "openlayers.Component:BootstrapjsPopup",
* library = "openlayers-plugin-component-bootstrapjspopup",
* is_configurable = "false",
* type = "component"
* )
*/
class BootstrapjsPopup extends Component {
/**
* {@inheritdoc}
*/
public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
return $form;
}
/**
* {@inheritdoc}
*/
public function attached() {
$attached = parent::attached();
$attached['libraries_load'][] = array('bootstrap');
return $attached;
}
/**
* {@inheritdoc}
*/
public function dependencies() {
return array(
'bootstrap_library',
);
}
}
