public function Store::setDefault in Commerce Core 8.2
Sets whether this is the default store.
Parameters
bool $is_default: Whether this is the default store.
Return value
$this
Overrides StoreInterface::setDefault
File
- modules/
store/ src/ Entity/ Store.php, line 208
Class
- Store
- Defines the store entity class.
Namespace
Drupal\commerce_store\EntityCode
public function setDefault($is_default) {
$this
->set('is_default', (bool) $is_default);
return $this;
}