You are here

public function ScheduledUpdate::getUpdateEntityIds in Scheduled Updates 8

Return the set of entities to update, as an array.

Return value

array Array of the update entity IDs.

Overrides ScheduledUpdateInterface::getUpdateEntityIds

File

src/Entity/ScheduledUpdate.php, line 65
Contains \Drupal\scheduled_updates\Entity\ScheduledUpdate.

Class

ScheduledUpdate
Defines the Scheduled update entity.

Namespace

Drupal\scheduled_updates\Entity

Code

public function getUpdateEntityIds() {
  $ids = [];
  $field_values = $this->entity_ids
    ->getValue();
  foreach ($field_values as $field_value) {
    $ids[] = $field_value['target_id'];
  }
  return $ids;
}