You are here

public function PathautoPattern::removeRelationship in Pathauto 8

Removes a relationship.

Parameters

string $token: Relationship identifier.

Return value

$this

Overrides PathautoPatternInterface::removeRelationship

File

src/Entity/PathautoPattern.php, line 280

Class

PathautoPattern
Defines the Pathauto pattern entity.

Namespace

Drupal\pathauto\Entity

Code

public function removeRelationship($token) {
  unset($this->relationships[$token]);
  return $this;
}