You are here

public function DeviceInterface::getDimensions in Responsive Theme Preview 8

Gets the device dimension.

Return value

array Associative array containing the following properties:

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

File

src/DeviceInterface.php, line 54

Class

DeviceInterface
Provides an interface for defining Device entities.

Namespace

Drupal\responsive_preview

Code

public function getDimensions();