You are here

protected function ExportTypeManager::getDiscovery in Entity Print 8.2

Gets the plugin discovery.

Return value

\Drupal\Component\Plugin\Discovery\DiscoveryInterface

Overrides DefaultPluginManager::getDiscovery

File

src/Plugin/ExportTypeManager.php, line 60

Class

ExportTypeManager
Export type manager.

Namespace

Drupal\entity_print\Plugin

Code

protected function getDiscovery() {
  if (!isset($this->discovery)) {
    $this->discovery = new YamlDiscovery('entity_print_export_types', $this->moduleHandler
      ->getModuleDirectories() + $this->themeHandler
      ->getThemeDirectories());
    $this->discovery = new ContainerDerivativeDiscoveryDecorator($this->discovery);
  }
  return $this->discovery;
}