You are here

public function MenuLinkContentService::__construct in Menu Item Extras 8.2

MenuLinkContentHelper constructor.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: Entity type manager.

\Drupal\Core\Entity\EntityDefinitionUpdateManagerInterface $entityDefinitionUpdateManager: Entity definition update manager.

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

\Drupal\Core\Field\FieldStorageDefinitionListenerInterface $fieldStorageDefinitionListener: The field storage definition listener.

\Drupal\Core\Entity\EntityLastInstalledSchemaRepositoryInterface $entityLastInstalledSchemaRepository: The entity last installed schema repository.

\Drupal\Core\Database\Connection $connection: The current database connection.

File

src/Service/MenuLinkContentService.php, line 85

Class

MenuLinkContentService
Class MenuLinkContentHelper.

Namespace

Drupal\menu_item_extras\Service

Code

public function __construct(EntityTypeManagerInterface $entityTypeManager, EntityDefinitionUpdateManagerInterface $entityDefinitionUpdateManager, EntityFieldManagerInterface $entityFieldManager, FieldStorageDefinitionListenerInterface $fieldStorageDefinitionListener, EntityLastInstalledSchemaRepositoryInterface $entityLastInstalledSchemaRepository, Connection $connection) {
  $this->entityTypeManager = $entityTypeManager;
  $this->entityDefinitionUpdateManager = $entityDefinitionUpdateManager;
  $this->entityFieldManager = $entityFieldManager;
  $this->fieldStorageDefinitionListener = $fieldStorageDefinitionListener;
  $this->entityLastInstalledSchemaRepository = $entityLastInstalledSchemaRepository;
  $this->connection = $connection;
}