Provides a tripal storage plugin manager.
◆ __construct()
Drupal\tripal\TripalStorage\PluginManager\TripalStorageManager::__construct |
( |
\Traversable |
$namespaces, |
|
|
CacheBackendInterface |
$cache_backend, |
|
|
ModuleHandlerInterface |
$module_handler |
|
) |
| |
Constructs a new tripal storage manager.
- Parameters
-
\Traversable | $namespaces | An object that implements \Traversable which contains the root paths keyed by the corresponding namespace to look for plugin implementations. |
\Drupal\Core\Extension\ModuleHandlerInterface | $module_handler | The module handler. |
string | $plugin_interface | The interface each plugin should implement. |
string | $plugin_definition_annotation_name | The name of the annotation that contains the plugin definition. |
◆ datastoreExists()
Drupal\tripal\TripalStorage\PluginManager\TripalStorageManager::datastoreExists |
( |
|
$plugin_id | ) |
|
Checks if a datastore has been registered properly and exists according to the storage manager.
- Parameters
-
string | The 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:
- tripal/src/TripalStorage/PluginManager/TripalStorageManager.php