You are here

public function ViewmodepagePattern::getRelationships in View Mode Page 3.2.x

Same name and namespace in other branches
  1. 8.3 src/Entity/ViewmodepagePattern.php \Drupal\view_mode_page\Entity\ViewmodepagePattern::getRelationships()
  2. 4.0.x src/Entity/ViewmodepagePattern.php \Drupal\view_mode_page\Entity\ViewmodepagePattern::getRelationships()

Returns a list of relationships.

Return value

array[] Keys are context tokens, and values are arrays with the following keys:

  • label (string|null, optional): The human-readable label of this relationship.

Overrides ViewmodepagePatternInterface::getRelationships

1 call to ViewmodepagePattern::getRelationships()
ViewmodepagePattern::getContexts in src/Entity/ViewmodepagePattern.php
Returns the contexts of this pattern.

File

src/Entity/ViewmodepagePattern.php, line 380

Class

ViewmodepagePattern
Defines the Viewmodepage pattern entity.

Namespace

Drupal\view_mode_page\Entity

Code

public function getRelationships() {
  return $this->relationships;
}