Verified Commit c6a71ff4 authored by Andrei Mateescu's avatar Andrei Mateescu
Browse files

task: #3567618 followup - Bump deprecation removals to Drupal 13

By: claudiu.cristea
By: amateescu
parent 54c6c2e5
Loading
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@
/**
 * The name of the query parameter for image derivative tokens.
 *
 * @deprecated in drupal:11.4.0 and is removed from drupal:12.0.0. Use
 * @deprecated in drupal:11.4.0 and is removed from drupal:13.0.0. Use
 *   \Drupal\image\ImageStyleInterface::TOKEN instead.
 *
 * @see https://www.drupal.org/node/3567619
@@ -22,13 +22,13 @@
 * @param string $path
 *   The Drupal file path to the original image.
 *
 * @deprecated in drupal:11.4.0 and is removed from drupal:12.0.0. Use
 * @deprecated in drupal:11.4.0 and is removed from drupal:13.0.0. Use
 *   ImageDerivativeUtilities::pathFlush() instead.
 *
 * @see https://www.drupal.org/node/3567619
 */
function image_path_flush($path): void {
  @trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.4.0 and is removed from drupal:12.0.0. Use \Drupal\image\ImageDerivativeUtilities::pathFlush() instead. See https://www.drupal.org/node/3567619', E_USER_DEPRECATED);
  @trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal\image\ImageDerivativeUtilities::pathFlush() instead. See https://www.drupal.org/node/3567619', E_USER_DEPRECATED);
  \Drupal::service(ImageDerivativeUtilities::class)->pathFlush($path);
}

@@ -41,12 +41,12 @@ function image_path_flush($path): void {
 * @return string[]
 *   Array of image styles both key and value are set to style name.
 *
 * @deprecated in drupal:11.4.0 and is removed from drupal:12.0.0. Use
 * @deprecated in drupal:11.4.0 and is removed from drupal:13.0.0. Use
 *   ImageDerivativeUtilities::styleOptions() instead.
 *
 * @see https://www.drupal.org/node/3567619
 */
function image_style_options($include_empty = TRUE): array {
  @trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.4.0 and is removed from drupal:12.0.0. Use \Drupal\image\ImageDerivativeUtilities::styleOptions() instead. See https://www.drupal.org/node/3567619', E_USER_DEPRECATED);
  @trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal\image\ImageDerivativeUtilities::styleOptions() instead. See https://www.drupal.org/node/3567619', E_USER_DEPRECATED);
  return \Drupal::service(ImageDerivativeUtilities::class)->styleOptions($include_empty);
}