You are here

FillPdfBackendManager.php in FillPDF 8.4

File

modules/fillpdf_legacy/src/Plugin/FillPdfBackendManager.php
View source
<?php

namespace Drupal\fillpdf_legacy\Plugin;

use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Plugin\DefaultPluginManager;

/**
 * Provides the legacy FillPDF FillPdfBackend plugin manager.
 *
 * @deprecated in fillpdf:8.x-4.9 and is removed from fillpdf:8.x-5.0.
 *   Use PdfBackendManager and the new PdfBackend plugins instead.
 * @see https://www.drupal.org/node/3059476
 * @see \Drupal\fillpdf\Plugin\PdfBackendManager
 */
class FillPdfBackendManager extends DefaultPluginManager {

  /**
   * Constructs a FillPdfBackendManager object.
   *
   * @param \Traversable $namespaces
   *   An object that implements \Traversable which contains the root paths
   *   keyed by the corresponding namespace to look for plugin implementations.
   * @param \Drupal\Core\Cache\CacheBackendInterface $cache_backend
   *   Cache backend instance to use.
   * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
   *   The module handler to invoke the alter hook with.
   */
  public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
    parent::__construct('Plugin/FillPdfBackend', $namespaces, $module_handler, '\\Drupal\\fillpdf\\FillPdfBackendPluginInterface');
    $this
      ->alterInfo('fillpdf_backend_info');
    $this
      ->setCacheBackend($cache_backend, 'fillpdf_backend_info_plugins');
  }

}

Classes

Namesort descending Description
FillPdfBackendManager Deprecated Provides the legacy FillPDF FillPdfBackend plugin manager.