You are here

public function BynderServiceInterface::updateMetadataLastMediaEntities in Bynder 8.2

Same name and namespace in other branches
  1. 8.3 src/BynderServiceInterface.php \Drupal\bynder\BynderServiceInterface::updateMetadataLastMediaEntities()
  2. 4.0.x src/BynderServiceInterface.php \Drupal\bynder\BynderServiceInterface::updateMetadataLastMediaEntities()

Updates metadata of the next N media entities starting at the minimum ID.

Parameters

string|null $minimum_id: (optional) The minimum media entity ID to query items for.

int $limit: (optional) The number of items to update per run.

Return value

array Empty array if updates are not possible. Otherwise, array with the keys:

  • updated (a list of updated media entities keyed by the media ID)
  • skipped (a list of skipped media entities keyed by the media ID)
  • total (the total count of processed media entities)
  • max_id (the maximum media entity ID that was last processed)
1 method overrides BynderServiceInterface::updateMetadataLastMediaEntities()
BynderService::updateMetadataLastMediaEntities in src/BynderService.php
Updates metadata of the next N media entities starting at the minimum ID.

File

src/BynderServiceInterface.php, line 48

Class

BynderServiceInterface
Provides methods to manage the Bynder module.

Namespace

Drupal\bynder

Code

public function updateMetadataLastMediaEntities($minimum_id = NULL, $limit = BynderService::MAX_ITEMS);