You are here

public function EntityTestWithStore::getStore in Commerce Core 8.2

Gets the store.

Return value

\Drupal\commerce_store\Entity\StoreInterface|null The store entity, or null.

Overrides EntityStoreInterface::getStore

File

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

Class

EntityTestWithStore
Defines a test entity class with store.

Namespace

Drupal\commerce_number_pattern_test\Entity

Code

public function getStore() {
  return $this
    ->get('store_id')->entity;
}