You are here

public function LinkitController::matcherTitle in Linkit 8.4

Same name and namespace in other branches
  1. 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'
linkit.routing.yml in ./linkit.routing.yml
linkit.routing.yml

File

src/Controller/LinkitController.php, line 42
Contains \Drupal\linkit\Controller\LinkitController.

Class

LinkitController
Provides route responses for linkit.module.

Namespace

Drupal\linkit\Controller

Code

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(),
  ));
}