Tripal
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Drupal\tripal\TripalStorage\PluginManager\TripalStorageManager Class Reference
Inheritance diagram for Drupal\tripal\TripalStorage\PluginManager\TripalStorageManager:
Inheritance graph
[legend]
Collaboration diagram for Drupal\tripal\TripalStorage\PluginManager\TripalStorageManager:
Collaboration graph
[legend]

Public Member Functions

 __construct (\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler,)
 
 getInstance (array $options)
 
 datastoreExists ($plugin_id)
 

Detailed Description

Provides a tripal storage plugin manager.

Constructor & Destructor Documentation

◆ __construct()

Drupal\tripal\TripalStorage\PluginManager\TripalStorageManager::__construct ( \Traversable  $namespaces,
CacheBackendInterface  $cache_backend,
ModuleHandlerInterface  $module_handler 
)

Constructs a new tripal storage manager.

Parameters
\Traversable$namespacesAn object that implements \Traversable which contains the root paths keyed by the corresponding namespace to look for plugin implementations.
Drupal\Core\Cache\CacheBackendInterface$cache_backendThe backend to use when caching this plugin type.
\Drupal\Core\Extension\ModuleHandlerInterface$module_handlerThe module handler.

Member Function Documentation

◆ datastoreExists()

Drupal\tripal\TripalStorage\PluginManager\TripalStorageManager::datastoreExists (   $plugin_id)

Checks if a datastore has been registered properly and exists.

Parameters
string$plugin_idThe plugin ID of the datastore you want to check. This is the 'id' in the annotation block.
Returns
bool True if the datastore exists and false otherwise.

◆ getInstance()

Drupal\tripal\TripalStorage\PluginManager\TripalStorageManager::getInstance ( array  $options)

{}


The documentation for this class was generated from the following file: