You are here

public static function BrightcoveUtil::clearQueue in Brightcove Video Connect 3.x

Same name and namespace in other branches
  1. 8.2 src/BrightcoveUtil.php \Drupal\brightcove\BrightcoveUtil::clearQueue()
  2. 8 src/BrightcoveUtil.php \Drupal\brightcove\BrightcoveUtil::clearQueue()

Clears a queue.

Parameters

string $queue: The queue name to clear.

1 call to BrightcoveUtil::clearQueue()
BrightcoveAPIClientDeleteForm::submitForm in src/Form/BrightcoveAPIClientDeleteForm.php
This is the default entity object builder function. It is called before any other submit handler to build the new entity object to be used by the following submit handlers. At this point of the form workflow the entity is validated and the form state…

File

src/BrightcoveUtil.php, line 384

Class

BrightcoveUtil
Utility class for Brightcove.

Namespace

Drupal\brightcove

Code

public static function clearQueue($queue) {

  // This is a static function called by Batch API, so it's not possible to
  // use dependency injection here.
  \Drupal::queue($queue)
    ->deleteQueue();
}