You are here

public function Device::setWeight in Responsive Theme Preview 8

Sets the device weight.

Parameters

int $weight: The device weight.

Overrides DeviceInterface::setWeight

File

src/Entity/Device.php, line 100

Class

Device
Defines the Device entity.

Namespace

Drupal\responsive_preview\Entity

Code

public function setWeight($weight) {
  $this->weight = (int) $weight;
}