Drupal 8: Middleware API