Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace Drupal\display_builder; |
6 | |
7 | use Drupal\Component\Plugin\PluginManagerInterface; |
8 | |
9 | /** |
10 | * Island plugin manager interface. |
11 | */ |
12 | interface IslandPluginManagerInterface extends PluginManagerInterface { |
13 | |
14 | /** |
15 | * Get islands plugins by type. |
16 | * |
17 | * @param \Drupal\Core\Plugin\Context\ContextInterface[] $contexts |
18 | * (Optional) An array of contexts, keyed by context name. |
19 | * @param array $configuration |
20 | * (Optional) An array of configuration. |
21 | * @param array $filter_by_island |
22 | * (Optional) Filter results by island ids. |
23 | * |
24 | * @return array |
25 | * A list of enabled islands sorted by weight. |
26 | */ |
27 | public function getIslandsByTypes(array $contexts = [], array $configuration = [], array $filter_by_island = []): array; |
28 | |
29 | /** |
30 | * Create an island instance for each definition. |
31 | * |
32 | * @param array $definitions |
33 | * An array of plugin definitions. |
34 | * @param \Drupal\Core\Plugin\Context\ContextInterface[] $contexts |
35 | * (Optional) An array of contexts, keyed by context name. |
36 | * @param array $configuration |
37 | * (Optional) An array of configuration. |
38 | * |
39 | * @return array<string, \Drupal\display_builder\IslandInterface> |
40 | * An array of island instances keyed by plugin ID. |
41 | */ |
42 | public function createInstances(array $definitions, array $contexts = [], array $configuration = []): array; |
43 | |
44 | } |