public function LingotekContentMetadataViewsData::__construct in Lingotek Translation 8.2
Same name and namespace in other branches
- 4.0.x src/Views/LingotekContentMetadataViewsData.php \Drupal\lingotek\Views\LingotekContentMetadataViewsData::__construct()
- 3.0.x src/Views/LingotekContentMetadataViewsData.php \Drupal\lingotek\Views\LingotekContentMetadataViewsData::__construct()
- 3.1.x src/Views/LingotekContentMetadataViewsData.php \Drupal\lingotek\Views\LingotekContentMetadataViewsData::__construct()
- 3.2.x src/Views/LingotekContentMetadataViewsData.php \Drupal\lingotek\Views\LingotekContentMetadataViewsData::__construct()
- 3.3.x src/Views/LingotekContentMetadataViewsData.php \Drupal\lingotek\Views\LingotekContentMetadataViewsData::__construct()
- 3.4.x src/Views/LingotekContentMetadataViewsData.php \Drupal\lingotek\Views\LingotekContentMetadataViewsData::__construct()
- 3.5.x src/Views/LingotekContentMetadataViewsData.php \Drupal\lingotek\Views\LingotekContentMetadataViewsData::__construct()
- 3.6.x src/Views/LingotekContentMetadataViewsData.php \Drupal\lingotek\Views\LingotekContentMetadataViewsData::__construct()
- 3.7.x src/Views/LingotekContentMetadataViewsData.php \Drupal\lingotek\Views\LingotekContentMetadataViewsData::__construct()
- 3.8.x src/Views/LingotekContentMetadataViewsData.php \Drupal\lingotek\Views\LingotekContentMetadataViewsData::__construct()
Constructs an EntityViewsData object.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type to provide views integration for.
\Drupal\Core\Entity\Sql\SqlEntityStorageInterface $storage_controller: The storage handler used for this entity type.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity manager.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
\Drupal\Core\StringTranslation\TranslationInterface $translation_manager: The translation manager.
\Drupal\lingotek\LingotekConfigurationServiceInterface $lingotek_configuration: The lingotek configuration service.
Overrides EntityViewsData::__construct
File
- src/
Views/ LingotekContentMetadataViewsData.php, line 61
Class
- LingotekContentMetadataViewsData
- Provides the lingotek views integration.
Namespace
Drupal\lingotek\ViewsCode
public function __construct(EntityTypeInterface $entity_type, SqlEntityStorageInterface $storage_controller, EntityTypeManagerInterface $entity_type_manager, ModuleHandlerInterface $module_handler, TranslationInterface $translation_manager, LingotekConfigurationServiceInterface $lingotek_configuration, EntityFieldManagerInterface $entity_field_manager = NULL) {
$entity_manager = \Drupal::service('entity.manager');
parent::__construct($entity_type, $storage_controller, $entity_manager, $module_handler, $translation_manager);
// @ToDo: Remove after 8.7.x compatibility is dropped. Since 8.8.x is in EntityViewsData
$this->entityTypeManager = $entity_type_manager;
$this->entityFieldManager = $entity_field_manager;
$this->lingotekConfigService = $lingotek_configuration;
}