media_acquiadam-8.x-1.46/src/Service/AssetRefreshManagerInterface.php

src/Service/AssetRefreshManagerInterface.php
<?php

namespace Drupal\media_acquiadam\Service;

/**
 * Interface AssetRefreshManagerInterface.
 *
 * Defines asset refresh manager interface.
 */
interface AssetRefreshManagerInterface {

  /**
   * Updates the asset refresh queue.
   *
   * Adds changed (modified or deleted) assets to the queue.
   *
   * @param array $asset_id_fields
   *   Associative array of source media entity fields keyed by entity bundle
   *   names.
   *
   * @return int
   *   Number of assets added to the queue.
   */
  public function updateQueue(array $asset_id_fields);

  /**
   * Returns the machine name of the asset refresh queue.
   *
   * @return string
   *   The queue machine name.
   */
  public function getQueueName(): string;

  /**
   * Get the current request limit.
   *
   * @return int
   *   The request limit.
   */
  public function getRequestLimit() : int;

  /**
   * Set a new request limit.
   *
   * @param int $newLimit
   *   The new request limit. Minimum of 1.
   *
   * @return int
   *   The old limit that was set.
   */
  public function setRequestLimit(int $newLimit = 100) : int;

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc