public function Profile::removeMatcher in Linkit 8.5
Same name and namespace in other branches
- 8.4 src/Entity/Profile.php \Drupal\linkit\Entity\Profile::removeMatcher()
Removes a matcher from this profile.
Parameters
\Drupal\linkit\MatcherInterface $matcher: The matcher object.
Return value
$this
Overrides ProfileInterface::removeMatcher
File
- src/
Entity/ Profile.php, line 134
Class
- Profile
- Defines the linkit profile entity.
Namespace
Drupal\linkit\EntityCode
public function removeMatcher(MatcherInterface $matcher) {
$this
->getMatchers()
->removeInstanceId($matcher
->getUuid());
$this
->save();
return $this;
}