You are here

public function CropInterface::setPosition in Crop API 8

Same name and namespace in other branches
  1. 8.2 src/CropInterface.php \Drupal\crop\CropInterface::setPosition()

Sets position of crop's center.

Parameters

int $x: X coordinate of the crop's center.

int $y: Y coordinate of the crop's center.

Return value

\Drupal\crop\CropInterface Crop object this is being called on.

1 method overrides CropInterface::setPosition()
Crop::setPosition in src/Entity/Crop.php
Sets position of crop's center.

File

src/CropInterface.php, line 32

Class

CropInterface
Provides an interface defining the crop entity.

Namespace

Drupal\crop

Code

public function setPosition($x, $y);