You are here

public function ImageWidgetCropExamplesForm::getEntity in Image Widget Crop 8.2

Helper to expose file entity element.

This method is mandatory to works with "buildCropToForm", for Uniqueness with File entity compatibility.

Return value

\Drupal\file\Entity\File|null File saved by file_manager element.

See also

\Drupal\image_widget_crop\ImageWidgetCropManager::buildCropToForm

File

modules/image_widget_crop_examples/src/Form/ImageWidgetCropExamplesForm.php, line 144

Class

ImageWidgetCropExamplesForm
Configure ImageWidgetCrop general settings for this site.

Namespace

Drupal\image_widget_crop_examples\Form

Code

public function getEntity() {
  return $this->file;
}