You are here

public function LinkitController::profileTitle in Linkit 8.5

Same name and namespace in other branches
  1. 8.4 src/Controller/LinkitController.php \Drupal\linkit\Controller\LinkitController::profileTitle()

Route title callback.

Parameters

\Drupal\linkit\ProfileInterface $linkit_profile: The profile.

Return value

string The profile label as a render array.

1 string reference to 'LinkitController::profileTitle'
linkit.routing.yml in ./linkit.routing.yml
linkit.routing.yml

File

src/Controller/LinkitController.php, line 22

Class

LinkitController
Provides route responses for linkit.module.

Namespace

Drupal\linkit\Controller

Code

public function profileTitle(ProfileInterface $linkit_profile) {
  return $this
    ->t('Edit %label profile', [
    '%label' => $linkit_profile
      ->label(),
  ]);
}