You are here

public static function EntityTraversalContainerInjectionInterface::create in General Data Protection Regulation 3.0.x

Same name and namespace in other branches
  1. 8.2 modules/gdpr_fields/src/EntityTraversalContainerInjectionInterface.php \Drupal\gdpr_fields\EntityTraversalContainerInjectionInterface::create()
  2. 8 modules/gdpr_fields/src/EntityTraversalContainerInjectionInterface.php \Drupal\gdpr_fields\EntityTraversalContainerInjectionInterface::create()

Creates an instance of the traversal for this specific entity.

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container: The service container this instance should use.

\Drupal\Core\Entity\EntityInterface $base_entity: The entity to be traversed.

1 method overrides EntityTraversalContainerInjectionInterface::create()
EntityTraversal::create in modules/gdpr_fields/src/EntityTraversal.php
Creates an instance of the traversal for this specific entity.

File

modules/gdpr_fields/src/EntityTraversalContainerInjectionInterface.php, line 24

Class

EntityTraversalContainerInjectionInterface
Defines a common interface for dependency container injection.

Namespace

Drupal\gdpr_fields

Code

public static function create(ContainerInterface $container, EntityInterface $base_entity);