public function PathautoPattern::hasRelationship in Pathauto 8
Returns whether a relationship exists.
Parameters
string $token: Relationship identifier.
Return value
bool TRUE if the relationship exists, FALSE otherwise.
Overrides PathautoPatternInterface::hasRelationship
2 calls to PathautoPattern::hasRelationship()
- PathautoPattern::addRelationship in src/
Entity/ PathautoPattern.php - Adds a relationship.
- PathautoPattern::replaceRelationship in src/
Entity/ PathautoPattern.php - Replaces a relationship.
File
- src/
Entity/ PathautoPattern.php, line 249
Class
- PathautoPattern
- Defines the Pathauto pattern entity.
Namespace
Drupal\pathauto\EntityCode
public function hasRelationship($token) {
return isset($this->relationships[$token]);
}