You are here

public function FocalPoint::__construct in Thunder 6.2.x

FocalPoint constructor.

Parameters

array $configuration: The plugin configuration array.

string $pluginId: The plugin id.

mixed $pluginDefinition: The plugin definition.

\Drupal\Core\Config\ConfigFactoryInterface $configFactory: The config factory service.

\Drupal\focal_point\FocalPointManagerInterface $focalPointManager: The focal point manager service.

\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: The module handler.

File

modules/thunder_gqls/src/Plugin/GraphQL/DataProducer/FocalPoint.php, line 85

Class

FocalPoint
Resolves the focal point positions for a file.

Namespace

Drupal\thunder_gqls\Plugin\GraphQL\DataProducer

Code

public function __construct(array $configuration, string $pluginId, $pluginDefinition, ConfigFactoryInterface $configFactory, FocalPointManagerInterface $focalPointManager, ModuleHandlerInterface $moduleHandler) {
  parent::__construct($configuration, $pluginId, $pluginDefinition);
  $this->config = $configFactory
    ->get('focal_point.settings');
  $this->focalPointManager = $focalPointManager;
  $this->moduleHandler = $moduleHandler;
}