|
@@ -8,41 +8,16 @@ namespace Drupal\images_styles_gen;
|
|
|
class CreateImagesStyles {
|
|
|
|
|
|
public static function createStyles($item, &$context){
|
|
|
+ if (!$context['sandbox']['progress']) {
|
|
|
+ $context['sandbox']['progress'] = 0;
|
|
|
+ }
|
|
|
$context['sandbox']['progress']++;
|
|
|
$context['sandbox']['current_file'] = $item->uri;
|
|
|
|
|
|
$results = array();
|
|
|
|
|
|
-
|
|
|
- $results[] = $item->style->createDerivative($item->uri, $item->destination);
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ $results[] = $item->style->createDerivative($item->uri, $item->destination);
|
|
|
+
|
|
|
$context['message'] = $item->uri . ' processed.';
|
|
|
$context['results'][] = $item->destination;
|
|
|
}
|