auto_height.module in jQuery Auto Height 8        
                          
                  
                        
  
Provides dynamic adjustment of column heights, matching the biggest column in each Row.
 
  
  
File
  auto_height.module
  
    View source  
  <?php
use Drupal\Core\Routing\RouteMatchInterface;
define("AUTOHEIGHT_PLUGIN_URL", 'https://raw.githubusercontent.com/monocult/jquery-autoheight/master/jquery.autoheight.js');
define("AUTOHEIGHT_LIBRARY_PATH", '/libraries/autoheight/jquery.autoheight.js');
function auto_height_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.auto_height':
      return check_markup(file_get_contents(dirname(__FILE__) . '/README.txt'));
  }
}
function auto_height_page_attachments(array &$page) {
  
  $config = \Drupal::config('auto_height.settings');
  $class_selectors = $config
    ->get('class_selectors');
  
  $js_selectors = implode(',', explode(PHP_EOL, $class_selectors));
  
  $page['#attached']['drupalSettings']['auto_height']['selectors'] = $js_selectors;
  
  $page['#attached']['library'][] = 'auto_height/autoheight';
  $page['#attached']['library'][] = 'auto_height/initialize';
}