You are here

InvitePluginManager.php in Invite 8

Namespace

Drupal\invite

File

src/InvitePluginManager.php
View source
<?php

namespace Drupal\invite;

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

/**
 * Class for Plugin Manager.
 */
class InvitePluginManager extends DefaultPluginManager {

  /**
   * Construct.
   */
  public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
    parent::__construct('Plugin/Invite', $namespaces, $module_handler, 'Drupal\\invite\\InvitePluginInterface', 'Drupal\\Component\\Annotation\\Plugin');
    $this
      ->alterInfo('invite_plugin_info');
    $this
      ->setCacheBackend($cache_backend, 'invite_plugin_info');
  }

}

Classes

Namesort descending Description
InvitePluginManager Class for Plugin Manager.