You are here

public function PollController::pollTitle in Poll 8

Route title callback.

Parameters

\Drupal\poll\PollInterface $poll: The poll entity.

Return value

string The poll label.

1 string reference to 'PollController::pollTitle'
poll.routing.yml in ./poll.routing.yml
poll.routing.yml

File

src/Controller/PollController.php, line 22

Class

PollController
Returns responses for poll module routes.

Namespace

Drupal\poll\Controller

Code

public function pollTitle(PollInterface $poll) {
  return $poll
    ->label();
}