You are here

public function ActivitiesBrowserController::formTitleCallback in Opigno module 8

Same name and namespace in other branches
  1. 3.x src/Controller/ActivitiesBrowserController.php \Drupal\opigno_module\Controller\ActivitiesBrowserController::formTitleCallback()

Page title callback.

Parameters

\Drupal\opigno_module\Entity\OpignoModuleInterface $opigno_module: Opigno module entity object.

Return value

string Opigno module entity label.

1 string reference to 'ActivitiesBrowserController::formTitleCallback'
opigno_module.routing.yml in ./opigno_module.routing.yml
opigno_module.routing.yml

File

src/Controller/ActivitiesBrowserController.php, line 28

Class

ActivitiesBrowserController
Class ActivitiesBrowserController.

Namespace

Drupal\opigno_module\Controller

Code

public function formTitleCallback(OpignoModuleInterface $opigno_module) {

  // Return entity label.
  return $opigno_module
    ->label();
}