function EntityTypeInterface::setFormClass
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::setFormClass()
- 8.9.x core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::setFormClass()
- 10 core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::setFormClass()
Sets a form class for a specific operation.
Parameters
string $operation: The operation to use this form class for.
string $class: The form class implementing \Drupal\Core\Entity\EntityFormInterface.
Return value
$this
See also
\Drupal\Core\Entity\EntityFormBuilderInterface
1 method overrides EntityTypeInterface::setFormClass()
- EntityType::setFormClass in core/
lib/ Drupal/ Core/ Entity/ EntityType.php - Sets a form class for a specific operation.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityTypeInterface.php, line 257
Class
- EntityTypeInterface
- Provides an interface for an entity type and its metadata.
Namespace
Drupal\Core\EntityCode
public function setFormClass($operation, $class);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.