You are here

public function VisibilityChecker::__construct in Image Lazyloader 8

Creates a new VisibilityChecker instance.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\Condition\ConditionManager $condition_manager: The condition manager.

File

src/VisibilityChecker.php, line 49

Class

VisibilityChecker
Class VisibilityChecker.

Namespace

Drupal\lazyloader

Code

public function __construct(ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_type_manager, ConditionManager $condition_manager) {
  $this->configFactory = $config_factory;
  $this->imageStyleStorage = $entity_type_manager
    ->getStorage('image_style');
  $this->conditionManager = $condition_manager;
}