You are here

function image_widget_crop_entity_insert in Image Widget Crop 8

Same name and namespace in other branches
  1. 8.2 image_widget_crop.module \image_widget_crop_entity_insert()

Implements hook_entity_insert().

File

./image_widget_crop.module, line 180
Contains image_widget_crop.module.

Code

function image_widget_crop_entity_insert(EntityInterface $entity) {
  \Drupal::service('image_widget_crop.manager')
    ->buildCropToEntity($entity);
}