public function ImageWidgetCropInterface::buildCropToEntity in Image Widget Crop 8.2
Fetch all fields FileField and use "image_crop" element on an entity.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity object.
1 method overrides ImageWidgetCropInterface::buildCropToEntity()
- ImageWidgetCropManager::buildCropToEntity in src/
ImageWidgetCropManager.php - Fetch all fields FileField and use "image_crop" element on an entity.
File
- src/
ImageWidgetCropInterface.php, line 203
Class
- ImageWidgetCropInterface
- Defines the interface for ImageWidgetCropManager calculation class service.
Namespace
Drupal\image_widget_cropCode
public function buildCropToEntity(EntityInterface $entity);