You are here

interface EntityPrintPluginManagerInterface in Entity Print 8.2

Print plugin manager interface.

Hierarchy

Expanded class hierarchy of EntityPrintPluginManagerInterface

All classes that implement EntityPrintPluginManagerInterface

3 files declare their use of EntityPrintPluginManagerInterface
EntityPrintController.php in src/Controller/EntityPrintController.php
SettingsForm.php in src/Form/SettingsForm.php
ViewPrintController.php in modules/entity_print_views/src/Controller/ViewPrintController.php

File

src/Plugin/EntityPrintPluginManagerInterface.php, line 10

Namespace

Drupal\entity_print\Plugin
View source
interface EntityPrintPluginManagerInterface extends PluginManagerInterface {

  /**
   * Gets currently selected plugin for this export type.
   *
   * @param string $export_type
   *   The export type plugin id.
   *
   * @return \Drupal\entity_print\Plugin\PrintEngineInterface
   *   The loaded print engine.
   */
  public function createSelectedInstance($export_type);

  /**
   * Checks if a plugin is enabled based on its dependencies.
   *
   * @param string $plugin_id
   *   The plugin id to check.
   *
   * @return bool
   *   TRUE if the plugin is disabled otherwise FALSE.
   */
  public function isPrintEngineEnabled($plugin_id);

  /**
   * Gets all disabled print engine definitions.
   *
   * @param string $filter_export_type
   *   The export type you want to filter by.
   *
   * @return array
   *   An array of disabled print engine definitions.
   */
  public function getDisabledDefinitions($filter_export_type);

}

Members

Namesort descending Modifiers Type Description Overrides
DiscoveryInterface::getDefinition public function Gets a specific plugin definition. 4
DiscoveryInterface::getDefinitions public function Gets the definition of all plugins for this type. 3
DiscoveryInterface::hasDefinition public function Indicates if a specific plugin definition exists. 2
EntityPrintPluginManagerInterface::createSelectedInstance public function Gets currently selected plugin for this export type. 1
EntityPrintPluginManagerInterface::getDisabledDefinitions public function Gets all disabled print engine definitions. 1
EntityPrintPluginManagerInterface::isPrintEngineEnabled public function Checks if a plugin is enabled based on its dependencies. 1
FactoryInterface::createInstance public function Creates a pre-configured instance of a plugin. 7
MapperInterface::getInstance public function Gets a preconfigured instance of a plugin. 4