public function ViewmodepagePatternInterface::replaceRelationship in View Mode Page 3.2.x
Same name and namespace in other branches
- 8.3 src/ViewmodepagePatternInterface.php \Drupal\view_mode_page\ViewmodepagePatternInterface::replaceRelationship()
- 4.0.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_pageCode
public function replaceRelationship($token, $label);