Skip to content
Snippets Groups Projects

Issue #3182589 by osman: Remove deprecated code

Merged Osman Gormus requested to merge issue/lazy-3182589:8.x-3.x into 8.x-3.x
1 file
+ 0
51
Compare changes
  • Side-by-side
  • Inline
+ 0
51
@@ -37,22 +37,6 @@ function lazy_help($route_name) {
return NULL;
}
/**
* Returns supported field-types.
*
* @return array
* Returns a list of field formatters that supports lazy-loading.
*
* @deprecated in lazy:8.x-3.0 and is removed from lazy:8.x-3.1.
* Use lazy_field_formatters() instead.
*
* @see https://www.drupal.org/node/3087642
*/
function lazy_field_types() {
@trigger_error('lazy_field_types() is deprecated in lazy:8.x-3.0 and is removed from lazy:8.x-3.1. Use lazy_field_formatters() instead. See https://www.drupal.org/node/3087642', E_USER_DEPRECATED);
return lazy_field_formatters();
}
/**
* Supported field formatters that Lazy-load can be enabled.
*
@@ -349,41 +333,6 @@ function lazy_page_attachments(array &$attachments) {
}
}
/**
* Callback function to check whether lazy is enabled in any text-formats.
*
* @return array|false
* Returns lazy configuration array if enabled, false otherwise.
*
* @deprecated in lazy:8.x-3.0 and is removed from lazy:8.x-3.1.
* Use \Drupal::service('lazy')->isEnabled() instead.
*
* @see https://www.drupal.org/node/3087640
*/
function lazy_is_enabled() {
@trigger_error("lazy_is_enabled() is deprecated in lazy:8.x-3.0 and is removed from lazy:8.x-3.1. Use \Drupal::service('lazy')->isEnabled(); instead. See https://www.drupal.org/node/3087640", E_USER_DEPRECATED);
return \Drupal::service('lazy')->isEnabled();
}
/**
* Checks whether lazy-load is disabled for the current path.
*
* @param string $disabled_paths
* List of paths whether Lazy should be enabled.
*
* @return bool
* Whether Lazy is allowed for the requested path.
*
* @deprecated in lazy:8.x-3.0 and is removed from lazy:8.x-3.1.
* Use \Drupal::service('lazy')->isPathAllowed($disabled_paths) instead.
*
* @see https://www.drupal.org/node/3087638
*/
function lazy_disabled_by_path($disabled_paths) {
@trigger_error('lazy_disabled_by_path() is deprecated in lazy:8.x-3.0 and is removed from lazy:8.x-3.1. Use \Drupal::service("lazy")->isPathAllowed($disabled_paths); instead. See https://www.drupal.org/node/3087638', E_USER_DEPRECATED);
return \Drupal::service('lazy')->isPathAllowed($disabled_paths);
}
/**
* Implements hook_field_formatter_info_alter().
*/
Loading