You are here

public function MigrationSubscriber::__construct in Simplenews 8

Same name and namespace in other branches
  1. 8.2 src/EventSubscriber/MigrationSubscriber.php \Drupal\simplenews\EventSubscriber\MigrationSubscriber::__construct()
  2. 3.x src/EventSubscriber/MigrationSubscriber.php \Drupal\simplenews\EventSubscriber\MigrationSubscriber::__construct()

Constructs a new migration subscriber.

Parameters

\Drupal\Core\Entity\EntityFieldManagerInterface $entityFieldManager: The entity field manager service.

File

src/EventSubscriber/MigrationSubscriber.php, line 34

Class

MigrationSubscriber
Create a simplenews field on relevant content types.

Namespace

Drupal\simplenews\EventSubscriber

Code

public function __construct(EntityFieldManagerInterface $entityFieldManager) {
  $this->entityFieldManager = $entityFieldManager;
}