You are here

public function ViewmodepagePatternInterface::replaceRelationship in View Mode Page 8.3

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

Replaces a relationship.

Only already existing relationships are updated.

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::replaceRelationship()
ViewmodepagePattern::replaceRelationship in src/Entity/ViewmodepagePattern.php
Replaces a relationship.

File

src/ViewmodepagePatternInterface.php, line 137

Class

ViewmodepagePatternInterface
Provides an interface for defining Viewmodepage pattern entities.

Namespace

Drupal\view_mode_page

Code

public function replaceRelationship($token, $label);