You are here

public function EntityCloneSettingsManager::__construct in Entity Clone 8

EntityCloneSettingsManager constructor.

Parameters

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

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle info service.

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

File

src/EntityCloneSettingsManager.php, line 53

Class

EntityCloneSettingsManager
Manage entity clone configuration.

Namespace

Drupal\entity_clone

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info, ConfigFactoryInterface $config_factory) {
  $this->entityTypeManager = $entity_type_manager;
  $this->entityTypeBundleInfo = $entity_type_bundle_info;
  $this->config = $config_factory
    ->get('entity_clone.settings');
  $this->editableConfig = $config_factory
    ->getEditable('entity_clone.settings');
}