You are here

public static function Utility::isBasicCartOrder in Basic cart 8

Same name and namespace in other branches
  1. 8.6 src/Utility.php \Drupal\basic_cart\Utility::isBasicCartOrder()
  2. 8.0 src/Utility.php \Drupal\basic_cart\Utility::isBasicCartOrder()
  3. 8.2 src/Utility.php \Drupal\basic_cart\Utility::isBasicCartOrder()
  4. 8.3 src/Utility.php \Drupal\basic_cart\Utility::isBasicCartOrder()
  5. 8.4 src/Utility.php \Drupal\basic_cart\Utility::isBasicCartOrder()
  6. 8.5 src/Utility.php \Drupal\basic_cart\Utility::isBasicCartOrder()
3 calls to Utility::isBasicCartOrder()
basic_cart_entity_delete in ./basic_cart.module
Implements hook_entity_delete().
basic_cart_entity_insert in ./basic_cart.module
Implements hook_entity_insert().
basic_cart_entity_presave in ./basic_cart.module
Implements hook_entity_presave().

File

src/Utility.php, line 32
Contains \Drupal\basic_cart\Utility

Class

Utility

Namespace

Drupal\basic_cart

Code

public static function isBasicCartOrder($bundle) {
  if ($bundle == self::BASICCART_ORDER) {
    return TRUE;
  }
  return FALSE;
}