You are here

public static function SlideBaseForm::create in Drupal Slider 8

Same name and namespace in other branches
  1. 8.2 src/Form/SlideBaseForm.php \Drupal\drupal_slider\Form\SlideBaseForm::create()

Function create.

Overrides FormBase::create

File

src/Form/SlideBaseForm.php, line 36

Class

SlideBaseForm
Class SlideBaseForm.

Namespace

Drupal\drupal_slider\Form

Code

public static function create(ContainerInterface $container) {
  $form = new static($container
    ->get('entity_type.manager')
    ->getStorage('drupal_slider_slide'));
  $form
    ->setMessenger($container
    ->get('messenger'));
  return $form;
}