Commit b784e91a authored by jhodgdon's avatar jhodgdon

Issue #2217643 by chx, tim.plunkett: Add docs to setFormClass method

parent 3e26a249
......@@ -19,7 +19,11 @@ interface EntityFormBuilderInterface {
* The entity to be created or edited.
* @param string $operation
* (optional) The operation identifying the form variation to be returned.
* Defaults to 'default'.
* Defaults to 'default'. This is typically used in routing:
* @code
* _entity_form: node.book_outline
* @endcode
* where "book_outline" is the value of $operation.
* @param array $form_state
* (optional) An associative array containing the current state of the form.
* Use this to pass additional information to the form, such as the
......
......@@ -229,6 +229,8 @@ public function setStorageClass($class);
*
* @return string
* The class for this operation's form for this entity type.
*
* @see \Drupal\Core\Entity\EntityFormBuilderInterface
*/
public function getFormClass($operation);
......@@ -238,9 +240,12 @@ public function getFormClass($operation);
* @param string $operation
* The operation to use this form class for.
* @param string $class
* The form class to use for the operation.
* The form class implementing
* \Drupal\Core\Entity\EntityFormControllerInterface.
*
* @return static
*
* @see \Drupal\Core\Entity\EntityFormBuilderInterface
*/
public function setFormClass($operation, $class);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment