function photos_access_filefield_paths_process_file in Album Photos 6.0.x
Same name and namespace in other branches
- 8.5 photos_access/photos_access.module \photos_access_filefield_paths_process_file()
Implements hook_filefield_paths_process_file().
File
- photos_access/
photos_access.module, line 1197 - Implementation of photos_access.module.
Code
function photos_access_filefield_paths_process_file(EntityInterface $entity, FileFieldItemList $field, array $settings = []) {
if ($entity
->getEntityTypeId() == 'photos_image') {
// @note this must be triggered after filefield_paths.
_photos_access_move_field_image($entity, $field);
}
}