You are here

interface S3fsRefreshCacheBatchInterface in S3 File System 4.0.x

Same name and namespace in other branches
  1. 8.3 src/Batch/S3fsRefreshCacheBatchInterface.php \Drupal\s3fs\Batch\S3fsRefreshCacheBatchInterface

Performs a refresh of the s3fs_file table with data from S3 bucket.

@package Drupal\s3fs\Batch

Hierarchy

Expanded class hierarchy of S3fsRefreshCacheBatchInterface

All classes that implement S3fsRefreshCacheBatchInterface

1 file declares its use of S3fsRefreshCacheBatchInterface
S3fsCommands.php in src/Commands/S3fsCommands.php

File

src/Batch/S3fsRefreshCacheBatchInterface.php, line 10

Namespace

Drupal\s3fs\Batch
View source
interface S3fsRefreshCacheBatchInterface {

  /**
   * Refreshes the complete list of objects in the S3 bucket.
   *
   * @param array $config
   *   An s3fs configuration array.
   */
  public function execute(array $config);

  /**
   * Initialise a batch builder object.
   *
   * @return \Drupal\Core\Batch\BatchBuilder
   *   The instantiated batch builder.
   */
  public function getBatch();

  /**
   * Batch operation callback to refresh the cached list of S3 bucket objects.
   *
   * @param array $config
   *   The S3 bucket configuration.
   * @param array|\DrushBatchContext $context
   *   Batch context.
   */
  public static function refreshCacheOperation(array $config, &$context);

  /**
   * Finished batch callback.
   *
   * @param bool $success
   *   Whether the batch completed successfully or not.
   * @param array $results
   *   The results key of the batch context.
   * @param array $operations
   *   The operations that were carried out.
   */
  public static function finished(bool $success, array $results, array $operations);

}

Members

Namesort descending Modifiers Type Description Overrides
S3fsRefreshCacheBatchInterface::execute public function Refreshes the complete list of objects in the S3 bucket. 1
S3fsRefreshCacheBatchInterface::finished public static function Finished batch callback. 1
S3fsRefreshCacheBatchInterface::getBatch public function Initialise a batch builder object. 1
S3fsRefreshCacheBatchInterface::refreshCacheOperation public static function Batch operation callback to refresh the cached list of S3 bucket objects. 1