public static function SlickSettingsForm::create in Slick Carousel 8.2
Same name and namespace in other branches
- 8 slick_ui/src/Form/SlickSettingsForm.php \Drupal\slick_ui\Form\SlickSettingsForm::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 ConfigFormBase::create
1 call to SlickSettingsForm::create()
- SlickSettingsFormTest::setUp in tests/
src/ Kernel/ Form/ SlickSettingsFormTest.php - @covers ::__construct
File
- slick_ui/
src/ Form/ SlickSettingsForm.php, line 24
Class
- SlickSettingsForm
- Defines the Slick admin settings form.
Namespace
Drupal\slick_ui\FormCode
public static function create(ContainerInterface $container) {
/**
* @var \Drupal\slick_ui\Form\SlickSettingsForm
*/
$instance = parent::create($container);
$instance->libraryDiscovery = $container
->get('library.discovery');
return $instance;
}