public function FlagLinkBuilderInterface::build in Flag 8.4
Lazy builder callback for displaying a flag action link.
Parameters
string $entity_type_id: The entity type ID for which the link should be shown.
string|int $entity_id: The entity ID for which the link should be shown.
string $flag_id: The flag ID for which the link should be shown.
Return value
array A render array for the action link, empty if the user does not have access.
1 method overrides FlagLinkBuilderInterface::build()
- FlagLinkBuilder::build in src/
FlagLinkBuilder.php - Lazy builder callback for displaying a flag action link.
File
- src/
FlagLinkBuilderInterface.php, line 24
Class
- FlagLinkBuilderInterface
- Provides a lazy builder for flag links.
Namespace
Drupal\flagCode
public function build($entity_type_id, $entity_id, $flag_id);