|
Tripal
|


Public Member Functions | |
| __construct (array $configuration, $plugin_id, $plugin_definition, \Drupal\Core\Database\Connection $connection, \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager, \Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager, \Drupal\Core\Field\FieldTypePluginManager $field_type_manager, \Drupal\tripal\Services\TripalLogger $logger, \Drupal\tripal\TripalStorage\PluginManager\TripalStorageManager $storage_manager, \Drupal\tripal\Services\TripalEntityLookup $entity_lookup_manager, \Drupal\tripal\Services\TripalTokenParser $token_parser) | |
Static Public Member Functions | |
| static | create (ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) |
Protected Attributes | |
| $connection | |
| $entity_type_manager = NULL | |
| $entity_field_manager = NULL | |
| $field_type_manager = NULL | |
| $logger = NULL | |
| $storage_manager = NULL | |
| $entity_lookup_manager = NULL | |
| $token_parser = NULL | |
| $batch_size = 1000 | |
| $job = NULL | |
| $bundle = '' | |
| $datastore = '' | |
| $schema_name = '' | |
| $republish = FALSE | |
| array | $allowed_title_tags = [] |
Defines a base class for Storage Backend-specific publish plugin implementations.
| Drupal\tripal\TripalBackendPublish\TripalBackendPublishBase::__construct | ( | array | $configuration, |
| $plugin_id, | |||
| $plugin_definition, | |||
| \Drupal\Core\Database\Connection | $connection, | ||
| \Drupal\Core\Entity\EntityTypeManagerInterface | $entity_type_manager, | ||
| \Drupal\Core\Entity\EntityFieldManagerInterface | $entity_field_manager, | ||
| \Drupal\Core\Field\FieldTypePluginManager | $field_type_manager, | ||
| \Drupal\tripal\Services\TripalLogger | $logger, | ||
| \Drupal\tripal\TripalStorage\PluginManager\TripalStorageManager | $storage_manager, | ||
| \Drupal\tripal\Services\TripalEntityLookup | $entity_lookup_manager, | ||
| \Drupal\tripal\Services\TripalTokenParser | $token_parser | ||
| ) |
{}
|
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 |
|
protected |
Valid HTML tags for titles. This is configurable through entity settings at /admin/tripal/config/entity_settings
|
protected |
Specifies the maximum number of records to publish at one time. This limits memory consumption if there are many thousands of records, for example gene records in the feature table.
|
protected |
The id of the entity type (bundle)
|
protected |
The id of the TripalStorage plugin.
|
protected |
The Drupal entity field manager service.
|
protected |
The Entity Lookup service.
|
protected |
The Drupal entity type manager service.
|
protected |
The Drupal field type manager service.
|
protected |
The TripalJob object.
|
protected |
The TripalLogger object.
|
protected |
The republish flag specifies whether to publish all entities if TRUE, or just publish new entities if FALSE. Republish is needed when new fields have been added, or when the entity title format has been changed.
|
protected |
The database schema to publish, e.g. 'chado'.
|
protected |
The Tripal Storage service.
|
protected |
The Tripal Token Parser service.