function ImageStyleFormBase::create

Same name in other branches
  1. 8.9.x core/modules/image/src/Form/ImageStyleFormBase.php \Drupal\image\Form\ImageStyleFormBase::create()
  2. 10 core/modules/image/src/Form/ImageStyleFormBase.php \Drupal\image\Form\ImageStyleFormBase::create()
  3. 11.x core/modules/image/src/Form/ImageStyleFormBase.php \Drupal\image\Form\ImageStyleFormBase::create()

Overrides FormBase::create

1 method overrides ImageStyleFormBase::create()
ImageStyleEditForm::create in core/modules/image/src/Form/ImageStyleEditForm.php
Instantiates a new instance of this class.

File

core/modules/image/src/Form/ImageStyleFormBase.php, line 42

Class

ImageStyleFormBase
Base form for image style add and edit forms.

Namespace

Drupal\image\Form

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.