Further modules included.
[yaffs-website] / web / modules / contrib / drupalmoduleupgrader / src / IndexerInterface.php
1 <?php
2
3 namespace Drupal\drupalmoduleupgrader;
4
5 use Pharborist\NodeInterface;
6
7 /**
8  * Interface for plugins which can scan a target module to collect information
9  * about what it contains. Indexers are always run before other plugin types,
10  * and all available indexers are always run. All information collected by
11  * indexers is available to the other plugin types via TargetInterface's
12  * getIndexer() method.
13  */
14 interface IndexerInterface {
15
16   public function bind(TargetInterface $module);
17
18   public function build();
19
20   public function clear();
21
22   public function destroy();
23
24   public function has($identifier);
25
26   public function hasAny(array $identifiers);
27
28   public function hasAll(array $identifiers);
29
30   public function addFile($path);
31
32   public function add(NodeInterface $node);
33
34   public function deleteFile($path);
35
36   public function delete($identifier);
37
38   public function get($identifier);
39
40   public function getMultiple(array $identifiers);
41
42   public function getAll();
43
44   public function getFields();
45
46   public function getQuery(array $fields = []);
47
48 }