You are here

public function DependencyHelper::__construct in Conditional Fields 4.x

Same name and namespace in other branches
  1. 8 src/DependencyHelper.php \Drupal\conditional_fields\DependencyHelper::__construct()

Constructor method.

Parameters

string $entity_type: An entity type name.

string $bundle: A bundle name.

File

src/DependencyHelper.php, line 95

Class

DependencyHelper
Resolve conditional field's dependencies.

Namespace

Drupal\conditional_fields

Code

public function __construct(string $entity_type, string $bundle) {
  $this->entity_type = $entity_type;
  $this->bundle = $bundle;
  $this->module_handler = \Drupal::moduleHandler();
}