You are here

public function ViewmodepagePattern::removeRelationship in View Mode Page 4.0.x

Same name and namespace in other branches
  1. 8.3 src/Entity/ViewmodepagePattern.php \Drupal\view_mode_page\Entity\ViewmodepagePattern::removeRelationship()
  2. 3.2.x src/Entity/ViewmodepagePattern.php \Drupal\view_mode_page\Entity\ViewmodepagePattern::removeRelationship()

Removes a relationship.

Parameters

string $token: Relationship identifier.

Return value

$this

Overrides ViewmodepagePatternInterface::removeRelationship

File

src/Entity/ViewmodepagePattern.php, line 372

Class

ViewmodepagePattern
Defines the Viewmodepage pattern entity.

Namespace

Drupal\view_mode_page\Entity

Code

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