public function EntityTestWithStore::getStoreId in Commerce Core 8.2
Gets the store ID.
Return value
int The store ID.
Overrides EntityStoreInterface::getStoreId
File
- modules/
number_pattern/ tests/ modules/ commerce_number_pattern_test/ src/ Entity/ EntityTestWithStore.php, line 53
Class
- EntityTestWithStore
- Defines a test entity class with store.
Namespace
Drupal\commerce_number_pattern_test\EntityCode
public function getStoreId() {
return $this
->get('store_id')->target_id;
}