You are here

public function Store::setAddress in Commerce Core 8.2

Sets the store address.

Parameters

\Drupal\address\AddressInterface $address: The store address.

Return value

$this

Overrides StoreInterface::setAddress

File

modules/store/src/Entity/Store.php, line 172

Class

Store
Defines the store entity class.

Namespace

Drupal\commerce_store\Entity

Code

public function setAddress(AddressInterface $address) {

  // $this->set('address', $address) results in the address being appended
  // to the item list, instead of replacing the existing first item.
  $this->address = $address;
  return $this;
}