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