public function Update360::__construct in Lightning Media 8.3
Same name and namespace in other branches
- 8.4 src/Update/Update360.php \Drupal\lightning_media\Update\Update360::__construct()
Update360 constructor.
Parameters
\Drupal\Core\Entity\EntityStorageInterface $entity_browser_storage: The entity browser entity storage handler.
\Drupal\Core\Entity\EntityStorageInterface $embed_button_storage: The embed button entity storage handler.
\Drupal\Core\StringTranslation\TranslationInterface $translation: (optional) The string translation service.
\Drupal\lightning_roles\ContentRoleManager $content_role_manager: (optional) The content role manager service.
File
- src/
Update/ Update360.php, line 55
Class
- Update360
- Contains optional updates targeting Lightning Media 3.6.0.
Namespace
Drupal\lightning_media\UpdateCode
public function __construct(EntityStorageInterface $entity_browser_storage, EntityStorageInterface $embed_button_storage, TranslationInterface $translation = NULL, ContentRoleManager $content_role_manager = NULL) {
$this->entityBrowserStorage = $entity_browser_storage;
$this->embedButtonStorage = $embed_button_storage;
if ($translation) {
$this
->setStringTranslation($translation);
}
$this->contentRoleManager = $content_role_manager;
}