You are here

public function EntityBrowser::getFormObject in Entity Browser 8

Same name and namespace in other branches
  1. 8.2 src/Entity/EntityBrowser.php \Drupal\entity_browser\Entity\EntityBrowser::getFormObject()

Gets entity browser form object.

Return value

\Drupal\entity_browser\EntityBrowserFormInterface Entity browser form.

Overrides EntityBrowserInterface::getFormObject

File

src/Entity/EntityBrowser.php, line 470

Class

EntityBrowser
Defines an entity browser configuration entity.

Namespace

Drupal\entity_browser\Entity

Code

public function getFormObject() {
  $form_class = \Drupal::service('class_resolver')
    ->getInstanceFromDefinition($this->form_class);
  $form_class
    ->setEntityBrowser($this);
  return $form_class;
}