public static function Settings::cartSettings in Basic cart 8.2
Same name and namespace in other branches
- 8.6 src/Settings.php \Drupal\basic_cart\Settings::cartSettings()
- 8 src/Settings.php \Drupal\basic_cart\Settings::cartSettings()
- 8.0 src/Settings.php \Drupal\basic_cart\Settings::cartSettings()
- 8.3 src/Settings.php \Drupal\basic_cart\Settings::cartSettings()
- 8.4 src/Settings.php \Drupal\basic_cart\Settings::cartSettings()
- 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.
File
- src/
Settings.php, line 30
Class
- Settings
- Settings file for basic cart.
Namespace
Drupal\basic_cartCode
public static function cartSettings() {
$return = \Drupal::config('basic_cart.settings');
return $return;
}