Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::setFormClass()
  2. 9 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 256

Class

EntityTypeInterface
Provides an interface for an entity type and its metadata.

Namespace

Drupal\Core\Entity

Code

public function setFormClass($operation, $class);