public function Profile::setMatcherConfig in Linkit 8.4
Same name and namespace in other branches
- 8.5 src/Entity/Profile.php \Drupal\linkit\Entity\Profile::setMatcherConfig()
Sets the configuration for a matcher instance.
Parameters
string $instance_id: The instance ID of the matcher to set the configuration for.
array $configuration: The matcher configuration to set.
Return value
$this
Overrides ProfileInterface::setMatcherConfig
File
- src/
Entity/ Profile.php, line 216 - Contains \Drupal\linkit\Entity\Profile.
Class
- Profile
- Defines the linkit profile entity.
Namespace
Drupal\linkit\EntityCode
public function setMatcherConfig($instance_id, array $configuration) {
$this->matchers[$instance_id] = $configuration;
$this
->getMatchers()
->setInstanceConfiguration($instance_id, $configuration);
return $this;
}