You are here

jquery_ui_sortable.module in jQuery UI Sortable 8

File

jquery_ui_sortable.module
View source
<?php

/**
 * @file
 * Contains jquery_ui_sortable.module.
 */
use Drupal\Core\Routing\RouteMatchInterface;

/**
 * Implements hook_help().
 */
function jquery_ui_sortable_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.jquery_ui_sortable':
      $output = '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('Drupal 8 includes jQuery UI in core, however it is no longer actively maintained and has been marked deprecated. This module provides the jQuery UI Sortable library for any themes and modules that require it.') . '</p>';
      $output .= '<p>' . t('For more information about the deprecation of jQuery UI, see this <a href=":change-record">change record</a>.', [
        ':change-record' => 'https://www.drupal.org/node/3067969',
      ]) . '</p>';
      $output .= '<p>' . t('For more information about SortableJS, the library replacing jQuery UI Sortable in core, see this <a href=":change-record">change record</a>.', [
        ':change-record' => 'https://www.drupal.org/node/3084730',
      ]) . '</p>';
      $output .= '<p>' . t('Visit the <a href=":project_link">jQuery UI Sortable project page</a> on Drupal.org for more information on this module.', [
        ':project_link' => 'https://www.drupal.org/project/jquery_ui_sortable',
      ]) . '</p>';
      return $output;
  }
}

Functions

Namesort descending Description
jquery_ui_sortable_help Implements hook_help().