You are here

public function Profile::getMatcher in Linkit 8.5

Same name and namespace in other branches
  1. 8.4 src/Entity/Profile.php \Drupal\linkit\Entity\Profile::getMatcher()

Returns a specific matcher.

Parameters

string $instance_id: The matcher instance ID.

Return value

\Drupal\linkit\MatcherInterface The matcher object.

Overrides ProfileInterface::getMatcher

File

src/Entity/Profile.php, line 107

Class

Profile
Defines the linkit profile entity.

Namespace

Drupal\linkit\Entity

Code

public function getMatcher($instance_id) {
  return $this
    ->getMatchers()
    ->get($instance_id);
}