Same name and namespace in other branches
  1. 8.x-3.x src/TabTypeManager.php \Drupal\quicktabs\TabTypeManager 1 comment

Quick Tabs plugin manager.

Hierarchy

  • class \Drupal\quicktabs\TabTypeManager extends \Drupal\Core\Plugin\DefaultPluginManager

Expanded class hierarchy of TabTypeManager

2 files declare their use of TabTypeManager
QuickTabsController.php in src/Controller/QuickTabsController.php
QuickTabsInstanceEditForm.php in src/Form/QuickTabsInstanceEditForm.php
1 string reference to 'TabTypeManager'
quicktabs.services.yml in ./quicktabs.services.yml
quicktabs.services.yml
1 service uses TabTypeManager
plugin.manager.tab_type in ./quicktabs.services.yml
Drupal\quicktabs\TabTypeManager

File

src/TabTypeManager.php, line 13

Namespace

Drupal\quicktabs
View source
class TabTypeManager extends DefaultPluginManager {
    
    /**
     * Construct a TabTypeManager 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 later hook with.
     */
    public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
        parent::__construct('Plugin/TabType', $namespaces, $module_handler, 'Drupal\\quicktabs\\TabTypeInterface', 'Drupal\\quicktabs\\Annotation\\TabType');
        $this->alterInfo('quicktabs_tab_type_info');
        $this->setCacheBackend($cache_backend, 'quicktabs_tab_types');
        $this->factory = new DefaultFactory($this->getDiscovery());
    }

}

Members

Title Sort descending Modifiers Object type Summary
TabTypeManager::__construct public function Construct a TabTypeManager object.