You are here

public function FilterLocationsEvent::setLocations in Commerce Stock 8

Sets the enabled stock locations.

Parameters

\Drupal\commerce_stock_local\Entity\LocalStockLocationInterface[] $locations: The stock locations.

File

modules/local_storage/src/Event/FilterLocationsEvent.php, line 59

Class

FilterLocationsEvent
Defines the filter locations event.

Namespace

Drupal\commerce_stock_local\Event

Code

public function setLocations(array $locations) {
  $this->locations = $locations;
}