public function Device::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).
Overrides DeviceInterface::getDimensions
File
- src/
Entity/ Device.php, line 121
Class
- Device
- Defines the Device entity.
Namespace
Drupal\responsive_preview\EntityCode
public function getDimensions() {
return $this->dimensions;
}