public function Store::getAddress in Commerce Core 8.2
Gets the store address.
Return value
\Drupal\address\AddressInterface The store address.
Overrides StoreInterface::getAddress
File
- modules/
store/ src/ Entity/ Store.php, line 165
Class
- Store
- Defines the store entity class.
Namespace
Drupal\commerce_store\EntityCode
public function getAddress() {
return $this
->get('address')
->first();
}