Tripal
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\Extension\ModuleHandlerInterface$module_handlerThe module handler.
string$plugin_interfaceThe interface each plugin should implement.
string$plugin_definition_annotation_nameThe name of the annotation that contains the plugin definition.

Member Function Documentation

◆ 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
stringThe 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: