Public Member Functions | |
| __construct (array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager) | |
| processItem ($data) | |
Static Public Member Functions | |
| static | create (ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) |
Protected Member Functions | |
| deleteReference (string $property_id, string $uuid) | |
Protected Attributes | |
| $entityTypeManager | |
Verifies if a dataset property reference is orphaned, then deletes it.
@QueueWorker( id = "orphan_reference_processor", title = @Translation("Task Worker: Check for orphaned property reference"), cron = {"time" = 15} )
@codeCoverageIgnore
Definition at line 23 of file OrphanReferenceProcessor.php.
| Drupal\dkan_data\Plugin\QueueWorker\OrphanReferenceProcessor::__construct | ( | array | $configuration, |
| $plugin_id, | |||
| $plugin_definition, | |||
| EntityTypeManagerInterface | $entity_type_manager | ||
| ) |
Constructs a new class instance.
| array | $configuration | A configuration array containing information about the plugin instance. |
| string | $plugin_id | The plugin_id for the plugin instance. |
| mixed | $plugin_definition | The plugin implementation definition. |
| \Drupal\Core\Entity\EntityTypeManagerInterface | $entity_type_manager | Entity type manager service. |
Definition at line 44 of file OrphanReferenceProcessor.php.
|
static |
|
protected |
Deletes a reference.
| string | $property_id | The property id. |
| string | $uuid | The uuid. |
Definition at line 103 of file OrphanReferenceProcessor.php.
| Drupal\dkan_data\Plugin\QueueWorker\OrphanReferenceProcessor::processItem | ( | $data | ) |
|
protected |
Definition at line 30 of file OrphanReferenceProcessor.php.