You are here

public function EntityTestWithStore::setStoreId in Commerce Core 8.2

Sets the store ID.

Parameters

int $store_id: The store ID.

Return value

$this

Overrides EntityStoreInterface::setStoreId

File

modules/number_pattern/tests/modules/commerce_number_pattern_test/src/Entity/EntityTestWithStore.php, line 60

Class

EntityTestWithStore
Defines a test entity class with store.

Namespace

Drupal\commerce_number_pattern_test\Entity

Code

public function setStoreId($store_id) {
  $this
    ->set('store_id', $store_id);
  return $this;
}