Same name in other branches
  1. 8.x-1.x src/EntityCloneSettingsManager.php \Drupal\entity_clone\EntityCloneSettingsManager::__construct()

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');
}