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_entity_view\Entity; |
| 6 | |
| 7 | use Drupal\Core\Entity\Display\EntityViewDisplayInterface; |
| 8 | |
| 9 | /** |
| 10 | * Provides an interface for entity displays that have Display Builder. |
| 11 | */ |
| 12 | interface DisplayBuilderEntityDisplayInterface extends EntityViewDisplayInterface { |
| 13 | |
| 14 | /** |
| 15 | * Determines if Display Builder is enabled. |
| 16 | * |
| 17 | * @return bool |
| 18 | * TRUE if Display Builder is enabled, FALSE otherwise. |
| 19 | */ |
| 20 | public function isDisplayBuilderEnabled(); |
| 21 | |
| 22 | /** |
| 23 | * Initial import from existing data. |
| 24 | * |
| 25 | * @return array |
| 26 | * List of UI Patterns sources. |
| 27 | * |
| 28 | * @see EntityView::initInstanceIfMissing() |
| 29 | */ |
| 30 | public function initialImport(): array; |
| 31 | |
| 32 | } |