public function ActionLinkTypePluginInterface::getAsLink in Flag 8.4
Get the action link as a Link object.
Parameters
\Drupal\flag\FlagInterface $flag: The flag entity.
\Drupal\Core\Entity\EntityInterface $entity: The flaggable entity.
Return value
\Drupal\Core\Link The action Link.
1 method overrides ActionLinkTypePluginInterface::getAsLink()
- ActionLinkTypeBase::getAsLink in src/
ActionLink/ ActionLinkTypeBase.php - Get the action link as a Link object.
File
- src/
ActionLink/ ActionLinkTypePluginInterface.php, line 39
Class
- ActionLinkTypePluginInterface
- Provides an interface for link type plugins.
Namespace
Drupal\flag\ActionLinkCode
public function getAsLink(FlagInterface $flag, EntityInterface $entity);