Updated all the contrib modules to their latest versions.
[yaffs-website] / web / modules / contrib / pathauto / src / AliasTypeBatchUpdateInterface.php
1 <?php
2
3 namespace Drupal\pathauto;
4
5 /**
6  * Alias types that support batch updates and deletions.
7  */
8 interface AliasTypeBatchUpdateInterface extends AliasTypeInterface {
9
10   /**
11    * Gets called to batch update all entries.
12    *
13    * @param string $action
14    *   One of:
15    *   - 'create' to generate a URL alias for paths having none.
16    *   - 'update' to recreate the URL alias for paths already having one, useful
17    *     if the pattern changed.
18    *   - 'all' to do both actions above at the same time.
19    * @param array $context
20    *   Batch context.
21    */
22   public function batchUpdate($action, &$context);
23
24   /**
25    * Gets called to batch delete all aliases created by pathauto.
26    *
27    * @param array $context
28    *   Batch context.
29    */
30   public function batchDelete(&$context);
31
32 }