function AddFormBase::create

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

Overrides FormBase::create

2 methods override AddFormBase::create()
FileUploadForm::create in core/modules/media_library/src/Form/FileUploadForm.php
Instantiates a new instance of this class.
OEmbedForm::create in core/modules/media_library/src/Form/OEmbedForm.php
Instantiates a new instance of this class.

File

core/modules/media_library/src/Form/AddFormBase.php, line 87

Class

AddFormBase
Provides a base class for creating media items from within the media library.

Namespace

Drupal\media_library\Form

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('entity_type.manager'), $container->get('media_library.ui_builder'), $container->get('media_library.opener_resolver'));
}

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