You are here

public function EditCurrency::title in Currency 8.3

Returns the title for a currency edit page.

Parameters

\Drupal\currency\Entity\CurrencyInterface $currency:

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup

1 string reference to 'EditCurrency::title'
currency.routing.yml in ./currency.routing.yml
currency.routing.yml

File

src/Controller/EditCurrency.php, line 40

Class

EditCurrency
Handles the "edit currency" route.

Namespace

Drupal\currency\Controller

Code

public function title(CurrencyInterface $currency) {
  return $this
    ->t('Edit @label', array(
    '@label' => $currency
      ->label(),
  ));
}