public function Profile::getMatchers in Linkit 8.4
Same name and namespace in other branches
- 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\EntityCode
public function getMatchers() {
if (!$this->matcherCollection) {
$this->matcherCollection = new MatcherCollection($this
->getMatcherManager(), $this->matchers);
$this->matcherCollection
->sort();
}
return $this->matcherCollection;
}