You are here

public function FieldEntryFormController::flagTitle in Flag 8.4

Title callback when creating a new flagging.

Parameters

\Drupal\flag\FlagInterface $flag: The flag entity.

int $entity_id: The entity ID to unflag.

Return value

string The flag field entry form title.

1 string reference to 'FieldEntryFormController::flagTitle'
flag.routing.yml in ./flag.routing.yml
flag.routing.yml

File

src/Controller/FieldEntryFormController.php, line 163

Class

FieldEntryFormController
Provides a controller for the Field Entry link type.

Namespace

Drupal\flag\Controller

Code

public function flagTitle(FlagInterface $flag, $entity_id) {
  $link_type = $flag
    ->getLinkTypePlugin();
  return $link_type
    ->getFlagQuestion();
}