You are here

public function BackToTopController::content in Express 8

1 string reference to 'BackToTopController::content'
express_back_to_top.routing.yml in modules/custom/express_back_to_top/express_back_to_top.routing.yml
modules/custom/express_back_to_top/express_back_to_top.routing.yml

File

modules/custom/express_back_to_top/src/Controller/BackToTopController.php, line 12
Contains \Drupal\express_back_to_top\Controller\BackToTopController.

Class

BackToTopController

Namespace

Drupal\express_back_to_top\Controller

Code

public function content() {
  return array(
    '#type' => 'markup',
    '#markup' => $this
      ->t('<div id="express_back_to_top"><a href="#page" title="Back to Top">Back to Top</a></div>'),
  );
}