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
3declare(strict_types=1);
4
5namespace Drupal\display_builder_entity_view\Entity;
6
7use Drupal\Core\Entity\Display\EntityViewDisplayInterface;
8use Drupal\display_builder\Entity\ProfileInterface;
9
10/**
11 * Provides an interface for entity displays that have Display Builder.
12 */
13interface 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}

Paths

Below are the source code lines that represent each code path as identified by Xdebug. Please note a path is not necessarily coterminous with a line, a line may contain multiple paths and therefore show up more than once. Please also be aware that some paths may include implicit rather than explicit branches, e.g. an if statement always has an else as part of its logical flow even if you didn't write one.