You are here

public function DeviceInterface::setDimensions in Responsive Theme Preview 8

Sets the device dimension.

Parameters

array $dimensions: Associative array containing the following properties:

  • weight: the width (integer).
  • height: the height (integer).
  • dppx: the dots per pixel (integer).
1 method overrides DeviceInterface::setDimensions()
Device::setDimensions in src/Entity/Device.php
Sets the device dimension.

File

src/DeviceInterface.php, line 65

Class

DeviceInterface
Provides an interface for defining Device entities.

Namespace

Drupal\responsive_preview

Code

public function setDimensions(array $dimensions);