Loading CHANGELOG.txt +5 −0 Original line number Diff line number Diff line Slick 8.x-2.0-dev, 2022-02-11 ----------------------------- - Issue #3257390 by gausarts, crutch, uwe_mue, wrd-oaitsd: It is not possible to uninstall slick. Slick 8.x-2.0-dev, 2022-02-03 ----------------------------- - Micro optimization: Modernizing PHP sections: null coalescing, destructuring. Loading slick.install +39 −0 Original line number Diff line number Diff line Loading @@ -44,6 +44,45 @@ function slick_requirements($phase) { ]; } /** * Implements hook_uninstall(). */ function slick_uninstall() { // @todo use blazy_filter_cleanup('slick'); at Blazy 3+ instead. // Or remove when core filter takes care of its own plugins removal cleanly. $config_factory = \Drupal::configFactory(); $config_storage = \Drupal::service('config.storage'); $module = 'slick'; $filter = "filters.{$module}_filter"; // Removes unclean slick_filter references, see #3257390. foreach ($config_storage->listAll('filter.format') as $config_name) { $config = $config_factory->getEditable($config_name); $plugin = $config->get($filter); if ($plugin) { $dependencies = $config->get('dependencies'); $modules = array_diff($dependencies['module'], [$module]); $config ->clear($filter) ->set('dependencies.module', $modules) ->save(TRUE); } } // Just to be safe and sure, reset filter_formats cache, etc. if (function_exists('drupal_static_reset')) { drupal_static_reset('filter_formats'); } \Drupal::entityTypeManager()->getStorage('filter_format')->resetCache(); // Clear plugin manager caches. \Drupal::getContainer()->get('plugin.cache_clearer')->clearCachedDefinitions(); } /** * Added pauseOnFocus option. */ Loading src/Plugin/Filter/FILTER_TIPS.txt +3 −0 Original line number Diff line number Diff line <h3>Slick</h3> <p>If you copy paste the lines here into CKEditor, be sure to view CKEditor source and remove the surrounding <code><code>...</code></code>. <br /> <p>Create a slideshow/ carousel with a shortcode. Pay attention to attributes, slashes, single and double quotes:</p> <ol> Loading Loading
CHANGELOG.txt +5 −0 Original line number Diff line number Diff line Slick 8.x-2.0-dev, 2022-02-11 ----------------------------- - Issue #3257390 by gausarts, crutch, uwe_mue, wrd-oaitsd: It is not possible to uninstall slick. Slick 8.x-2.0-dev, 2022-02-03 ----------------------------- - Micro optimization: Modernizing PHP sections: null coalescing, destructuring. Loading
slick.install +39 −0 Original line number Diff line number Diff line Loading @@ -44,6 +44,45 @@ function slick_requirements($phase) { ]; } /** * Implements hook_uninstall(). */ function slick_uninstall() { // @todo use blazy_filter_cleanup('slick'); at Blazy 3+ instead. // Or remove when core filter takes care of its own plugins removal cleanly. $config_factory = \Drupal::configFactory(); $config_storage = \Drupal::service('config.storage'); $module = 'slick'; $filter = "filters.{$module}_filter"; // Removes unclean slick_filter references, see #3257390. foreach ($config_storage->listAll('filter.format') as $config_name) { $config = $config_factory->getEditable($config_name); $plugin = $config->get($filter); if ($plugin) { $dependencies = $config->get('dependencies'); $modules = array_diff($dependencies['module'], [$module]); $config ->clear($filter) ->set('dependencies.module', $modules) ->save(TRUE); } } // Just to be safe and sure, reset filter_formats cache, etc. if (function_exists('drupal_static_reset')) { drupal_static_reset('filter_formats'); } \Drupal::entityTypeManager()->getStorage('filter_format')->resetCache(); // Clear plugin manager caches. \Drupal::getContainer()->get('plugin.cache_clearer')->clearCachedDefinitions(); } /** * Added pauseOnFocus option. */ Loading
src/Plugin/Filter/FILTER_TIPS.txt +3 −0 Original line number Diff line number Diff line <h3>Slick</h3> <p>If you copy paste the lines here into CKEditor, be sure to view CKEditor source and remove the surrounding <code><code>...</code></code>. <br /> <p>Create a slideshow/ carousel with a shortcode. Pay attention to attributes, slashes, single and double quotes:</p> <ol> Loading