W3cubDocs

/Drupal 8

public function EntityTypeManagerInterface::getFormObject

public EntityTypeManagerInterface::getFormObject($entity_type, $operation)

Creates a new form instance.

Parameters

string $entity_type: The entity type for this form.

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

Return value

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

File

core/lib/Drupal/Core/Entity/EntityTypeManagerInterface.php, line 70

Class

EntityTypeManagerInterface
Provides an interface for entity type managers.

Namespace

Drupal\Core\Entity

Code

public function getFormObject($entity_type, $operation);

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!EntityTypeManagerInterface.php/function/EntityTypeManagerInterface::getFormObject/8.1.x