public function EntityTypeInterface::setFormClass in Zircon Profile 8.0
Same name and namespace in other branches
- 8 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 263 - Contains \Drupal\Core\Entity\EntityTypeInterface.
Class
- EntityTypeInterface
- Provides an interface for an entity type and its metadata.
Namespace
Drupal\Core\EntityCode
public function setFormClass($operation, $class);