public function LinkitController::matcherTitle in Linkit 8.4
Same name and namespace in other branches
- 8.5 src/Controller/LinkitController.php \Drupal\linkit\Controller\LinkitController::matcherTitle()
Route title callback.
Parameters
\Drupal\linkit\ProfileInterface $linkit_profile: The profile.
string $plugin_instance_id: The plugin instance id.
Return value
string The title for the matcher edit form.
1 string reference to 'LinkitController::matcherTitle'
File
- src/
Controller/ LinkitController.php, line 42 - Contains \Drupal\linkit\Controller\LinkitController.
Class
- LinkitController
- Provides route responses for linkit.module.
Namespace
Drupal\linkit\ControllerCode
public function matcherTitle(ProfileInterface $linkit_profile, $plugin_instance_id) {
/** @var \Drupal\linkit\MatcherInterface $matcher */
$matcher = $linkit_profile
->getMatcher($plugin_instance_id);
return $this
->t('Edit %label matcher', array(
'%label' => $matcher
->getLabel(),
));
}