You are here

public function Profile::getMatcher in Linkit 8.4

Same name and namespace in other branches
  1. 8.5 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 180
Contains \Drupal\linkit\Entity\Profile.

Class

Profile
Defines the linkit profile entity.

Namespace

Drupal\linkit\Entity

Code

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