You are here

public static function Update400::create in Lightning Media 8.4

Same name in this branch
  1. 8.4 src/Update/Update400.php \Drupal\lightning_media\Update\Update400::create()
  2. 8.4 modules/lightning_media_document/src/Update/Update400.php \Drupal\lightning_media_document\Update\Update400::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

1 call to Update400::create()
Update400Test::test in tests/src/Functional/Update400Test.php
Tests that field widgets are changed to use Media Library.

File

src/Update/Update400.php, line 45

Class

Update400
Contains optional updates targeting Lightning Media 4.0.0.

Namespace

Drupal\lightning_media\Update

Code

public static function create(ContainerInterface $container) {
  return new static($container
    ->get('entity_type.manager'));
}