Code Coverage |
||||||||||||||||
Lines |
Branches |
Paths |
Functions and Methods |
Classes and Traits |
||||||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
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 | /** |
| 8 | * Interface for Island event subscriber. |
| 9 | */ |
| 10 | interface IslandEventSubscriberInterface { |
| 11 | |
| 12 | /** |
| 13 | * Event triggered when a node becomes active. |
| 14 | * |
| 15 | * @param string $instance_id |
| 16 | * The Display Builder instance ID. |
| 17 | * @param array $data |
| 18 | * The node data. |
| 19 | * |
| 20 | * @return array |
| 21 | * Returns a render array with out-of-band commands. |
| 22 | */ |
| 23 | public function onActive(string $instance_id, array $data): array; |
| 24 | |
| 25 | /** |
| 26 | * Event triggered when a node is attached to the root. |
| 27 | * |
| 28 | * @param string $instance_id |
| 29 | * The Display Builder instance ID. |
| 30 | * @param string $node_id |
| 31 | * The tree node ID. |
| 32 | * |
| 33 | * @return array |
| 34 | * Returns a render array with out-of-band commands. |
| 35 | */ |
| 36 | public function onAttachToRoot(string $instance_id, string $node_id): array; |
| 37 | |
| 38 | /** |
| 39 | * Event triggered when a node is attached to a slot. |
| 40 | * |
| 41 | * @param string $instance_id |
| 42 | * The Display Builder instance ID. |
| 43 | * @param string $node_id |
| 44 | * The tree node ID. |
| 45 | * @param string $parent_id |
| 46 | * The parent node instance ID. |
| 47 | * |
| 48 | * @return array |
| 49 | * Returns a render array with out-of-band commands. |
| 50 | */ |
| 51 | public function onAttachToSlot(string $instance_id, string $node_id, string $parent_id): array; |
| 52 | |
| 53 | /** |
| 54 | * Event triggered when a node is deleted. |
| 55 | * |
| 56 | * @param string $instance_id |
| 57 | * The Display Builder instance ID. |
| 58 | * @param string $parent_id |
| 59 | * The parent node instance ID. |
| 60 | * |
| 61 | * @return array |
| 62 | * Returns a render array with out-of-band commands. |
| 63 | */ |
| 64 | public function onDelete(string $instance_id, string $parent_id): array; |
| 65 | |
| 66 | /** |
| 67 | * Event triggered when the history changes. |
| 68 | * |
| 69 | * @param string $instance_id |
| 70 | * The Display Builder instance ID. |
| 71 | * |
| 72 | * @return array |
| 73 | * Returns a render array with out-of-band commands. |
| 74 | */ |
| 75 | public function onHistoryChange(string $instance_id): array; |
| 76 | |
| 77 | /** |
| 78 | * Event triggered when a node is moved. |
| 79 | * |
| 80 | * @param string $instance_id |
| 81 | * The Display Builder instance ID. |
| 82 | * @param string $node_id |
| 83 | * The tree node ID. |
| 84 | * |
| 85 | * @return array |
| 86 | * Returns a render array with out-of-band commands. |
| 87 | */ |
| 88 | public function onMove(string $instance_id, string $node_id): array; |
| 89 | |
| 90 | /** |
| 91 | * Event triggered when a node is updated. |
| 92 | * |
| 93 | * @param string $instance_id |
| 94 | * The Display Builder instance ID. |
| 95 | * @param string $node_id |
| 96 | * The tree node ID. |
| 97 | * |
| 98 | * @return array |
| 99 | * Returns a render array with out-of-band commands. |
| 100 | */ |
| 101 | public function onUpdate(string $instance_id, string $node_id): array; |
| 102 | |
| 103 | /** |
| 104 | * Event triggered when a builder is saved. |
| 105 | * |
| 106 | * @param string $instance_id |
| 107 | * The Display Builder instance ID. |
| 108 | * |
| 109 | * @return array |
| 110 | * Returns a render array with out-of-band commands. |
| 111 | */ |
| 112 | public function onSave(string $instance_id): array; |
| 113 | |
| 114 | /** |
| 115 | * Event triggered when a preset is saved. |
| 116 | * |
| 117 | * @param string $instance_id |
| 118 | * The Display Builder instance ID. |
| 119 | * |
| 120 | * @return array |
| 121 | * Returns a render array with out-of-band commands. |
| 122 | */ |
| 123 | public function onPresetSave(string $instance_id): array; |
| 124 | |
| 125 | } |
Below are the source code lines that represent each code branch as identified by Xdebug. Please note a branch is not
necessarily coterminous with a line, a line may contain multiple branches and therefore show up more than once.
Please also be aware that some branches may be implicit rather than explicit, e.g. an if statement
always has an else as part of its logical flow even if you didn't write one.