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