public function EntityBrowser::getFormObject in Entity Browser 8.2
Same name and namespace in other branches
- 8 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\EntityCode
public function getFormObject() {
$form_class = \Drupal::service('class_resolver')
->getInstanceFromDefinition($this->form_class);
$form_class
->setEntityBrowser($this);
return $form_class;
}