public function MigrationSubscriber::__construct in Simplenews 8.2
Same name and namespace in other branches
- 8 src/EventSubscriber/MigrationSubscriber.php \Drupal\simplenews\EventSubscriber\MigrationSubscriber::__construct()
- 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.
\Drupal\Core\Entity\EntityDisplayRepositoryInterface $entity_display_repository: The entity display repository.
File
- src/
EventSubscriber/ MigrationSubscriber.php, line 47
Class
- MigrationSubscriber
- Create a simplenews field on relevant content types.
Namespace
Drupal\simplenews\EventSubscriberCode
public function __construct(EntityFieldManagerInterface $entityFieldManager, EntityDisplayRepositoryInterface $entity_display_repository) {
$this->entityFieldManager = $entityFieldManager;
$this->entityDisplayRepository = $entity_display_repository;
}