function ImageEffectBase::create

Same name in other branches
  1. 9 core/modules/image/src/ImageEffectBase.php \Drupal\image\ImageEffectBase::create()
  2. 8.9.x core/modules/image/src/ImageEffectBase.php \Drupal\image\ImageEffectBase::create()
  3. 10 core/modules/image/src/ImageEffectBase.php \Drupal\image\ImageEffectBase::create()

Overrides ContainerFactoryPluginInterface::create

File

core/modules/image/src/ImageEffectBase.php, line 56

Class

ImageEffectBase
Provides a base class for image effects.

Namespace

Drupal\image

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
    return new static($configuration, $plugin_id, $plugin_definition, $container->get('logger.factory')
        ->get('image'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.