You are here

public function EntityTraversalFactory::__construct in General Data Protection Regulation 8

Same name and namespace in other branches
  1. 8.2 modules/gdpr_fields/src/EntityTraversalFactory.php \Drupal\gdpr_fields\EntityTraversalFactory::__construct()
  2. 3.0.x modules/gdpr_fields/src/EntityTraversalFactory.php \Drupal\gdpr_fields\EntityTraversalFactory::__construct()

EntityTraversal constructor.

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container: The service container.

string $traverser: The traversal class name.

File

modules/gdpr_fields/src/EntityTraversalFactory.php, line 37

Class

EntityTraversalFactory
Factory class for traversing entities.

Namespace

Drupal\gdpr_fields

Code

public function __construct(ContainerInterface $container, $traverser) {
  $this->container = $container;
  $this->traverser = $traverser;
}