You are here

public static function SlideGroupBaseForm::create in Drupal Slider 8

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

Function create.

Overrides FormBase::create

File

src/Form/SlideGroupBaseForm.php, line 34

Class

SlideGroupBaseForm
Class SlideGroupBaseForm.

Namespace

Drupal\drupal_slider\Form

Code

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