function EditorImageDialog::create

Same name in other branches
  1. 9 core/modules/editor/src/Form/EditorImageDialog.php \Drupal\editor\Form\EditorImageDialog::create()
  2. 10 core/modules/editor/src/Form/EditorImageDialog.php \Drupal\editor\Form\EditorImageDialog::create()

Overrides FormBase::create

File

core/modules/editor/src/Form/EditorImageDialog.php, line 44

Class

EditorImageDialog
Provides an image dialog for text editors.

Namespace

Drupal\editor\Form

Code

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

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