You are here

public function SubscriptionController::tabTitle in Message Subscribe 8

Provides the page title for a given tab.

Parameters

\Drupal\flag\FlagInterface $flag: The flag for which to display subscriptions.

Return value

string The tab title as defined by the flag.

1 string reference to 'SubscriptionController::tabTitle'
message_subscribe_ui.routing.yml in message_subscribe_ui/message_subscribe_ui.routing.yml
message_subscribe_ui/message_subscribe_ui.routing.yml

File

message_subscribe_ui/src/Controller/SubscriptionController.php, line 130

Class

SubscriptionController
Default controller for the message_subscribe_ui module.

Namespace

Drupal\message_subscribe_ui\Controller

Code

public function tabTitle(FlagInterface $flag) {
  return $flag
    ->label();
}