public function ActionLinkTypePluginInterface::getAsFlagLink in Flag 8.4
Get the action link formatted for use in entity links.
Parameters
\Drupal\flag\FlagInterface $flag: The flag entity.
\Drupal\Core\Entity\EntityInterface $entity: The flaggable entity.
Return value
array The render array.
1 method overrides ActionLinkTypePluginInterface::getAsFlagLink()
- ActionLinkTypeBase::getAsFlagLink in src/
ActionLink/ ActionLinkTypeBase.php - Get the action link formatted for use in entity links.
File
- src/
ActionLink/ ActionLinkTypePluginInterface.php, line 26
Class
- ActionLinkTypePluginInterface
- Provides an interface for link type plugins.
Namespace
Drupal\flag\ActionLinkCode
public function getAsFlagLink(FlagInterface $flag, EntityInterface $entity);