You are here

public function CartController::getCartPageTitle in Basic cart 8

Same name and namespace in other branches
  1. 8.6 src/Controller/CartController.php \Drupal\basic_cart\Controller\CartController::getCartPageTitle()
  2. 8.0 src/Controller/CartController.php \Drupal\basic_cart\Controller\CartController::getCartPageTitle()
  3. 8.2 src/Controller/CartController.php \Drupal\basic_cart\Controller\CartController::getCartPageTitle()
  4. 8.3 src/Controller/CartController.php \Drupal\basic_cart\Controller\CartController::getCartPageTitle()
  5. 8.4 src/Controller/CartController.php \Drupal\basic_cart\Controller\CartController::getCartPageTitle()
  6. 8.5 src/Controller/CartController.php \Drupal\basic_cart\Controller\CartController::getCartPageTitle()
1 string reference to 'CartController::getCartPageTitle'
basic_cart.routing.yml in ./basic_cart.routing.yml
basic_cart.routing.yml

File

src/Controller/CartController.php, line 26
Contains \Drupal\basic_cart\Controller\CartController.

Class

CartController
Contains the cart controller.

Namespace

Drupal\basic_cart\Controller

Code

public function getCartPageTitle() {
  $config = Utility::cartSettings();
  $message = $config
    ->get('cart_page_title');
  return $this
    ->t($message);
}