You are here

public function EntityManagerWrapper::getFormObject in Devel 8.2

Same name and namespace in other branches
  1. 8.3 webprofiler/src/Entity/EntityManagerWrapper.php \Drupal\webprofiler\Entity\EntityManagerWrapper::getFormObject()
  2. 8 webprofiler/src/Entity/EntityManagerWrapper.php \Drupal\webprofiler\Entity\EntityManagerWrapper::getFormObject()
  3. 4.x webprofiler/src/Entity/EntityManagerWrapper.php \Drupal\webprofiler\Entity\EntityManagerWrapper::getFormObject()

Creates a new form instance.

Parameters

string $entity_type_id: The entity type ID for this form.

string $operation: The name of the operation to use, e.g., 'default'.

Return value

\Drupal\Core\Entity\EntityFormInterface A form instance.

Overrides EntityTypeManagerInterface::getFormObject

File

webprofiler/src/Entity/EntityManagerWrapper.php, line 176

Class

EntityManagerWrapper
Class EntityManagerWrapper

Namespace

Drupal\webprofiler\Entity

Code

public function getFormObject($entity_type, $operation) {
  return $this->entityManager
    ->getFormObject($entity_type, $operation);
}