You are here

public static function Settings::cartSettings in Basic cart 8.2

Same name and namespace in other branches
  1. 8.6 src/Settings.php \Drupal\basic_cart\Settings::cartSettings()
  2. 8 src/Settings.php \Drupal\basic_cart\Settings::cartSettings()
  3. 8.0 src/Settings.php \Drupal\basic_cart\Settings::cartSettings()
  4. 8.3 src/Settings.php \Drupal\basic_cart\Settings::cartSettings()
  5. 8.4 src/Settings.php \Drupal\basic_cart\Settings::cartSettings()
  6. 8.5 src/Settings.php \Drupal\basic_cart\Settings::cartSettings()

Get the cart configuration.

Return value

object Array of settings

9 calls to Settings::cartSettings()
CartSession::addToCart in src/CartSession.php
Add to cart.
CartTable::addToCart in src/CartTable.php
Add to cart.
Settings::cartUpdatedMessage in src/Settings.php
Return Cart updated message.
Settings::formatPrice in src/Settings.php
Formats the input $price in the desired format.
Settings::getTotalPrice in src/Settings.php
Returns the final price for the shopping cart.

... See full list

File

src/Settings.php, line 30

Class

Settings
Settings file for basic cart.

Namespace

Drupal\basic_cart

Code

public static function cartSettings() {
  $return = \Drupal::config('basic_cart.settings');
  return $return;
}