The following classes or methods are deprecated in slick:8.x-2.0 and are or to be removed from slick:8.x-3.0 or so for a few reasons such as a transition from Video Embed Field to core Media, clarity, consistency, additional functionality (migrating from hook_hook_info to plugin system), decluttering particular classes:
| slick:7.x-3.0 - 8.x-2.0 (Before) | slick:8.x-2.1 and or slick:8.x-3.0+ (After) |
|---|---|
| \Drupal\slick\Plugin\Field\FieldFormatter\SlickFileFormatter | \\SlickMediaFormatter |
| \Drupal\slick\SlickSkin | \Drupal\slick\Plugin\slick\SlickSkin |
| \Drupal\slick\SlickSkinManager | |
| \Drupal\slick\SlickSkinManagerInterface | |
| \Drupal\slick\SlickSkinPluginBase | |
| \Drupal\slick\SlickSkinPluginInterface | |
| \Drupal\slick\Annotation\SlickSkin | |
| \Drupal\slick\SlickManager::attachSkin | \Drupal\slick\SlickSkinManager::attachSkin |
| \Drupal\slick\SlickManager::getSkins | \Drupal\slick\SlickSkinManager::getSkins |
| \Drupal\slick\SlickManager::getSkinsByGroup | \Drupal\slick\SlickSkinManager::getSkinsByGroup |
| \Drupal\slick\SlickManager::getConstantSkins | \Drupal\slick\SlickSkinManager::getConstantSkins |
| \Drupal\slick\SlickManager::libraryInfoBuild | \Drupal\slick\SlickSkinManager::libraryInfoBuild |
| \Drupal\slick\SlickManager::getEasingPath | \Drupal\slick\SlickSkinManager::getEasingPath |
| \Drupal\slick\Entity\Slick::getHtmlId() | \Drupal\blazy\Blazy::getHtmlId() |
API changes
https://git.drupalcode.org/project/slick/blob/8.x-2.x/slick.api.php#L341
Registering a Slick skin:
| slick:7.x-3.0 - 8.x-2.0 (Before) | slick:8.x-2.1+ (After) |
|---|---|
To register a skin:
The class must implement
|
To register a skin:
The SlickSkin object has 3 supported methods: The method bodies (the array structure of skin definitions) are similar to previous ones, no changes.
|
During transition, a new option is provided which can be toggled at Slick UI:
- Disable deprecated skins
Depending on your needs. Leave it unchecked if things are broken, or (y/our) sub-modules are not updated with the new plugin system, yet. If you are sure things are not broken, or never register a skin nor using Slick examples, you can check this to reduce extra join. At any rate, skins are permanently cached once, so should not impact much.
Important!
Skins are permanently cached. If you don't see any newly added skins via y/our sub-modules, be sure to clear cache.