public function PathautoPatternInterface::addRelationship in Pathauto 8
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 PathautoPatternInterface::addRelationship()
- PathautoPattern::addRelationship in src/
Entity/ PathautoPattern.php - Adds a relationship.
File
- src/
PathautoPatternInterface.php, line 88
Class
- PathautoPatternInterface
- Provides an interface for defining Pathauto pattern entities.
Namespace
Drupal\pathautoCode
public function addRelationship($token, $label = NULL);