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 | /** |
8 | * Interface for renderable alterers. |
9 | */ |
10 | interface RenderableAltererInterface extends IslandInterface { |
11 | |
12 | /** |
13 | * Alters the given element with additional data. |
14 | * |
15 | * @param array $element |
16 | * The element to be altered. |
17 | * @param array $data |
18 | * (Optional) Additional data to be used for alteration. |
19 | * |
20 | * @return array |
21 | * The altered element. |
22 | */ |
23 | public function alterElement(array $element, array $data = []): array; |
24 | |
25 | } |