public function StockLocation::setName in Commerce Stock 8
Sets the stock location name.
Parameters
string $name: The stock location name.
Return value
\Drupal\commerce_stock_local\Entity\LocalStockLocationInterface The called stock location entity.
Overrides LocalStockLocationInterface::setName
File
- modules/
local_storage/ src/ Entity/ StockLocation.php, line 93
Class
- StockLocation
- Defines the stock location entity.
Namespace
Drupal\commerce_stock_local\EntityCode
public function setName($name) {
$this
->set('name', $name);
return $this;
}