Updated to Drupal 8.5. Core Media not yet in use.
[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 if the pattern changed.
17    *   - 'all' to do both actions above at the same time.
18    * @param array $context
19    *   Batch context.
20    */
21   public function batchUpdate($action, &$context);
22
23   /**
24    * Gets called to batch delete all aliases created by pathauto.
25    *
26    * @param array $context
27    *   Batch context.
28    */
29   public function batchDelete(&$context);
30
31 }