You are here

public static function Settings::cartUpdatedMessage in Basic cart 8.0

Same name and namespace in other branches
  1. 8.6 src/Settings.php \Drupal\basic_cart\Settings::cartUpdatedMessage()
  2. 8 src/Settings.php \Drupal\basic_cart\Settings::cartUpdatedMessage()
  3. 8.2 src/Settings.php \Drupal\basic_cart\Settings::cartUpdatedMessage()
  4. 8.3 src/Settings.php \Drupal\basic_cart\Settings::cartUpdatedMessage()
  5. 8.4 src/Settings.php \Drupal\basic_cart\Settings::cartUpdatedMessage()
  6. 8.5 src/Settings.php \Drupal\basic_cart\Settings::cartUpdatedMessage()
2 calls to Settings::cartUpdatedMessage()
CartSession::addToCart in src/CartSession.php
CartTable::addToCart in src/CartTable.php

File

src/Settings.php, line 31

Class

Settings

Namespace

Drupal\basic_cart

Code

public static function cartUpdatedMessage() {
  $config = static::cartSettings();
  drupal_set_message(t($config
    ->get('cart_updated_message')));
}