You are here

public function Device::setOrientation in Responsive Theme Preview 8

Sets the device orientation.

Parameters

string $orientation: The device orientation. The only values allowed are: 'landscape' and 'portrait'.

Overrides DeviceInterface::setOrientation

File

src/Entity/Device.php, line 114

Class

Device
Defines the Device entity.

Namespace

Drupal\responsive_preview\Entity

Code

public function setOrientation($orientation) {
  $this->orientation = $orientation;
}