|
Tripal
|


Public Member Functions | |
| __construct (\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler, \Drupal\tripal\Services\TripalLogger $logger) | |
| createInstance ($plugin_id, array $configuration=[]) | |
| publishBundles (array $storages) | |
Static Public Member Functions | |
| static | create (ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) |
| static | runTripalJob ($bundle, $datastore, $options=[], \Drupal\tripal\Services\TripalJob $job=NULL) |
Protected Attributes | |
| $logger = NULL | |
Provides a TripalBackendPublish plugin manager.
| Drupal\tripal\TripalBackendPublish\PluginManager\TripalBackendPublishManager::__construct | ( | \Traversable | $namespaces, |
| CacheBackendInterface | $cache_backend, | ||
| ModuleHandlerInterface | $module_handler, | ||
| \Drupal\tripal\Services\TripalLogger | $logger | ||
| ) |
Constructs a new TripalBackendPublish manager.
| \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. |
| \Drupal\tripal\Services\TripalLogger | $logger |
|
static |
Implements ContainerFactoryPluginInterface->create().
Since we have implemented the ContainerFactoryPluginInterface this static function will be called behind the scenes when a Plugin Manager uses createInstance(). Specifically this method is used to determine the parameters to pass to the constructor.
| \Symfony\Component\DependencyInjection\ContainerInterface | $container | |
| array | $configuration | |
| string | $plugin_id | |
| mixed | $plugin_definition |
| Drupal\tripal\TripalBackendPublish\PluginManager\TripalBackendPublishManager::createInstance | ( | $plugin_id, | |
| array | $configuration = [] |
||
| ) |
{}
OVERRIDE: We need to override the default implementation here in order to pass in the dependencies cleanly :-)
| Drupal\tripal\TripalBackendPublish\PluginManager\TripalBackendPublishManager::publishBundles | ( | array | $storages | ) |
Publish a number of bundles for specific publish instances.
| array | $storages | An associative array keyed by the id for the TripalBackendPublish plugin instance (e.g. chado_storage), and the value is a second array level with:
|
|
static |
Publish content of a specified type. Uses a Tripal service.
| string | $bundle | The entity type id (bundle) to be published. |
| string | $datastore | The plugin id for the TripalStorage backend to publish from, for example 'chado_storage'. |
| array | $options | Associative array of additional options to pass to the publish plugin. Valid keys are 'schema_name', 'republish', 'batch_size'. |
| \Drupal\tripal\Services\TripalJob | $job | An optional TripalJob object. |
|
protected |
The TripalLogger object.