You are here

public function ViewmodepagePatternInterface::addRelationship in View Mode Page 3.2.x

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

Adds a relationship.

The relationship will not be changed if it already exists.

Parameters

string $token: Relationship identifier.

string|null $label: (optional) A label, will use the label of the referenced context if not provided.

Return value

$this

1 method overrides ViewmodepagePatternInterface::addRelationship()
ViewmodepagePattern::addRelationship in src/Entity/ViewmodepagePattern.php
Adds a relationship.

File

src/ViewmodepagePatternInterface.php, line 122

Class

ViewmodepagePatternInterface
Provides an interface for defining Viewmodepage pattern entities.

Namespace

Drupal\view_mode_page

Code

public function addRelationship($token, $label = NULL);