You are here

public function Store::isDefault in Commerce Core 8.2

Gets whether this is the default store.

Return value

bool TRUE if this is the default store, FALSE otherwise.

Overrides StoreInterface::isDefault

1 call to Store::isDefault()
Store::postSave in modules/store/src/Entity/Store.php
Acts on a saved entity before the insert or update hook is invoked.

File

modules/store/src/Entity/Store.php, line 201

Class

Store
Defines the store entity class.

Namespace

Drupal\commerce_store\Entity

Code

public function isDefault() {
  return (bool) $this
    ->get('is_default')->value;
}