public function MediaHelper::__construct in Lightning Media 8
Same name and namespace in other branches
- 8.4 src/MediaHelper.php \Drupal\lightning_media\MediaHelper::__construct()
- 8.2 src/MediaHelper.php \Drupal\lightning_media\MediaHelper::__construct()
- 8.3 src/MediaHelper.php \Drupal\lightning_media\MediaHelper::__construct()
MediaHelper constructor.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
File
- src/
MediaHelper.php, line 29
Class
- MediaHelper
- Provides helper methods for dealing with media entities.
Namespace
Drupal\lightning_mediaCode
public function __construct(EntityTypeManagerInterface $entity_type_manager) {
$this->entityTypeManager = $entity_type_manager;
}