dvf-2.x-dev/src/Plugin/VisualisationPluginManagerInterface.php

src/Plugin/VisualisationPluginManagerInterface.php
<?php

namespace Drupal\dvf\Plugin;

use Drupal\Component\Plugin\PluginManagerInterface;

/**
 * Provides an interface defining a VisualisationPluginManager.
 */
interface VisualisationPluginManagerInterface extends PluginManagerInterface {

  /**
   * Creates a pre-configured instance of a plugin.
   *
   * @param string $plugin_id
   *   The ID of the plugin being instantiated.
   * @param array $configuration
   *   An array of configuration relevant to the plugin instance.
   * @param \Drupal\dvf\Plugin\VisualisationInterface $visualisation
   *   The visualisation context in which the plugin will run.
   *
   * @return object
   *   A fully configured plugin instance.
   *
   * @throws \Drupal\Component\Plugin\Exception\PluginException
   *   If the instance cannot be created, such as if the ID is invalid.
   */
  public function createInstance($plugin_id, array $configuration = [], VisualisationInterface $visualisation = NULL);

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc