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'
File
- src/
Controller/ PollController.php, line 22
Class
- PollController
- Returns responses for poll module routes.
Namespace
Drupal\poll\ControllerCode
public function pollTitle(PollInterface $poll) {
return $poll
->label();
}