interface FlagLinkBuilderInterface in Flag 8.4
Provides a lazy builder for flag links.
Hierarchy
- interface \Drupal\flag\FlagLinkBuilderInterface
Expanded class hierarchy of FlagLinkBuilderInterface
All classes that implement FlagLinkBuilderInterface
1 file declares its use of FlagLinkBuilderInterface
- FlagViewsLinkField.php in src/
Plugin/ views/ field/ FlagViewsLinkField.php
File
- src/
FlagLinkBuilderInterface.php, line 8
Namespace
Drupal\flagView source
interface FlagLinkBuilderInterface {
/**
* Lazy builder callback for displaying a flag action link.
*
* @param string $entity_type_id
* The entity type ID for which the link should be shown.
* @param string|int $entity_id
* The entity ID for which the link should be shown.
* @param string $flag_id
* The flag ID for which the link should be shown.
*
* @return array
* A render array for the action link, empty if the user does not have
* access.
*/
public function build($entity_type_id, $entity_id, $flag_id);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FlagLinkBuilderInterface:: |
public | function | Lazy builder callback for displaying a flag action link. | 1 |