You are here

public static function Settings::cartUpdatedMessage in Basic cart 8.2

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.0 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()

Return Cart updated message.

2 calls to Settings::cartUpdatedMessage()
CartSession::addToCart in src/CartSession.php
Add to cart.
CartTable::addToCart in src/CartTable.php
Add to cart.

File

src/Settings.php, line 38

Class

Settings
Settings file for basic cart.

Namespace

Drupal\basic_cart

Code

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