You are here

protected function FieldEntryFormController::getForm in Flag 8.4

Get the flag's field entry form.

Parameters

\Drupal\flag\FlaggingInterface $flagging: The flagging from which to get the form.

string|null $operation: (optional) The operation identifying the form variant to return. If no operation is specified then 'default' is used.

Return value

array The processed form for the given flagging and operation.

3 calls to FieldEntryFormController::getForm()
FieldEntryFormController::edit in src/Controller/FieldEntryFormController.php
Return the flagging edit form.
FieldEntryFormController::flag in src/Controller/FieldEntryFormController.php
Performs a flagging when called via a route.
FieldEntryFormController::unflag in src/Controller/FieldEntryFormController.php
Performs an unflagging when called via a route.

File

src/Controller/FieldEntryFormController.php, line 196

Class

FieldEntryFormController
Provides a controller for the Field Entry link type.

Namespace

Drupal\flag\Controller

Code

protected function getForm(FlaggingInterface $flagging, $operation = 'default') {
  return $this
    ->entityFormBuilder()
    ->getForm($flagging, $operation);
}