public static function Update350::create in Lightning Media 8.3
Same name in this branch
- 8.3 modules/lightning_media_audio/src/Update/Update350.php \Drupal\lightning_media_audio\Update\Update350::create()
- 8.3 modules/lightning_media_video/src/Update/Update350.php \Drupal\lightning_media_video\Update\Update350::create()
Same name and namespace in other branches
- 8.4 modules/lightning_media_audio/src/Update/Update350.php \Drupal\lightning_media_audio\Update\Update350::create()
Instantiates a new instance of this class.
This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton.
Parameters
\Symfony\Component\DependencyInjection\ContainerInterface $container: The service container this instance should use.
Overrides ContainerInjectionInterface::create
File
- modules/
lightning_media_audio/ src/ Update/ Update350.php, line 57
Class
- Update350
- Contains optional updates targeting Lightning Media Audio 3.5.0.
Namespace
Drupal\lightning_media_audio\UpdateCode
public static function create(ContainerInterface $container) {
return new static($container
->get('entity_type.manager')
->getStorage('media_type'), $container
->get('entity_type.manager')
->getStorage('field_config'), $container
->get('string_translation'));
}