You are here

public function CropType::getSoftLimit in Crop API 8.2

Same name and namespace in other branches
  1. 8 src/Entity/CropType.php \Drupal\crop\Entity\CropType::getSoftLimit()

Returns width and height soft limit values.

Return value

array Width and height values.

Overrides CropTypeInterface::getSoftLimit

File

src/Entity/CropType.php, line 152

Class

CropType
Defines the Crop type configuration entity.

Namespace

Drupal\crop\Entity

Code

public function getSoftLimit() {
  return [
    'width' => $this->soft_limit_width,
    'height' => $this->soft_limit_height,
  ];
}