Adapt module for Drupal 8.x