public function DependencyHelper::__construct in Conditional Fields 8
Same name and namespace in other branches
- 4.x 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 51
Class
- DependencyHelper
- Resolve conditional field's dependencies.
Namespace
Drupal\conditional_fieldsCode
public function __construct(string $entity_type, string $bundle) {
$this->entity_type = $entity_type;
$this->bundle = $bundle;
$this->module_handler = \Drupal::moduleHandler();
}