You are here

protected function IndependentUpdateRunner::getReferencingUpdates in Scheduled Updates 8

Get all scheduled updates that referencing entities via Entity Reference Field

Return value

ScheduledUpdate[]

1 call to IndependentUpdateRunner::getReferencingUpdates()
IndependentUpdateRunner::getAllUpdates in src/Plugin/UpdateRunner/IndependentUpdateRunner.php
Get all schedule updates for this types that should be added to queue.

File

src/Plugin/UpdateRunner/IndependentUpdateRunner.php, line 35
Contains \Drupal\scheduled_updates\Plugin\UpdateRunner\IndependentUpdateRunner.

Class

IndependentUpdateRunner
The default Embedded Update Runner.

Namespace

Drupal\scheduled_updates\Plugin\UpdateRunner

Code

protected function getReferencingUpdates() {
  $updates = [];
  $update_ids = $this
    ->getReadyUpdateIds();
  foreach ($update_ids as $update_id) {
    $updates[] = [
      'update_id' => $update_id,
      'entity_type' => $this
        ->updateEntityType(),
    ];
  }
  return $updates;
}