You are here

imageapi_optimize_webp.module in ImageAPI Optimize WebP 2.x

Same filename and directory in other branches
  1. 8 imageapi_optimize_webp.module

File

imageapi_optimize_webp.module
View source
<?php

/**
 * Implements hook_entity_type_alter().
 */
function imageapi_optimize_webp_entity_type_alter(array &$entity_types) {
  if (isset($entity_types['imageapi_optimize_pipeline'])) {
    $entity_types['imageapi_optimize_pipeline']
      ->setClass('Drupal\\imageapi_optimize_webp\\Entity\\ImageAPIOptimizeWebPPipeline');
  }
  return [];
}