You are here

public function Profile::getMatchers in Linkit 8.4

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

Returns the matchers for this profile.

Return value

\Drupal\linkit\MatcherCollection|\Drupal\linkit\MatcherInterface[] The matcher collection.

Overrides ProfileInterface::getMatchers

1 call to Profile::getMatchers()
Profile::getPluginCollections in src/Entity/Profile.php
Gets the plugin collections used by this object.

File

src/Entity/Profile.php, line 187
Contains \Drupal\linkit\Entity\Profile.

Class

Profile
Defines the linkit profile entity.

Namespace

Drupal\linkit\Entity

Code

public function getMatchers() {
  if (!$this->matcherCollection) {
    $this->matcherCollection = new MatcherCollection($this
      ->getMatcherManager(), $this->matchers);
    $this->matcherCollection
      ->sort();
  }
  return $this->matcherCollection;
}