function EditorImageDialog::create

Overrides FormBase::create

File

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

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.