You are here

public static function FocalPointEffectBase::create in Focal Point 8

@codeCoverageIgnore

Overrides ImageEffectBase::create

File

src/FocalPointEffectBase.php, line 89

Class

FocalPointEffectBase
Provides a base class for image effects.

Namespace

Drupal\focal_point

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'), $container
    ->get('focal_point.manager'), $container
    ->get('entity_type.manager')
    ->getStorage('crop'), $container
    ->get('config.factory')
    ->get('focal_point.settings'), $container
    ->get('request_stack')
    ->getCurrentRequest());
}