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 | use Drupal\display_builder\Entity\ProfileInterface; |
| 9 | |
| 10 | /** |
| 11 | * Provides an interface for entity displays that have Display Builder. |
| 12 | */ |
| 13 | interface DisplayBuilderEntityDisplayInterface extends EntityViewDisplayInterface { |
| 14 | |
| 15 | /** |
| 16 | * Determines if Display Builder is enabled. |
| 17 | * |
| 18 | * @return bool |
| 19 | * TRUE if Display Builder is enabled, FALSE otherwise. |
| 20 | */ |
| 21 | public function isDisplayBuilderEnabled(); |
| 22 | |
| 23 | /** |
| 24 | * Determines if the display allows custom overrides. |
| 25 | * |
| 26 | * @return bool |
| 27 | * TRUE if custom overrides are allowed, FALSE otherwise. |
| 28 | */ |
| 29 | public function isDisplayBuilderOverridable(): bool; |
| 30 | |
| 31 | /** |
| 32 | * Returns the field name used to store overridden displays. |
| 33 | * |
| 34 | * @return string|null |
| 35 | * The override field if available. |
| 36 | */ |
| 37 | public function getDisplayBuilderOverrideField(): ?string; |
| 38 | |
| 39 | /** |
| 40 | * Get display builder config entity for overridden view mode. |
| 41 | * |
| 42 | * @return ?ProfileInterface |
| 43 | * The display builder config entity. |
| 44 | */ |
| 45 | public function getDisplayBuilderOverrideProfile(): ?ProfileInterface; |
| 46 | |
| 47 | } |
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.