You are here

abstract protected function ActionLinkTypeBase::getUrl in Flag 8.4

Return a Url object for the given flag action.

Parameters

string $action: The action, flag or unflag.

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

\Drupal\Core\Entity\EntityInterface $entity: The flaggable entity.

Return value

Url The Url object for this plugin's flag/unflag route.

2 calls to ActionLinkTypeBase::getUrl()
ActionLinkTypeBase::getAsFlagLink in src/ActionLink/ActionLinkTypeBase.php
Get the action link formatted for use in entity links.
ActionLinkTypeBase::getAsLink in src/ActionLink/ActionLinkTypeBase.php
Get the action link as a Link object.
3 methods override ActionLinkTypeBase::getUrl()
ConfirmForm::getUrl in src/Plugin/ActionLink/ConfirmForm.php
Return a Url object for the given flag action.
FieldEntry::getUrl in src/Plugin/ActionLink/FieldEntry.php
Return a Url object for the given flag action.
Reload::getUrl in src/Plugin/ActionLink/Reload.php
Return a Url object for the given flag action.

File

src/ActionLink/ActionLinkTypeBase.php, line 80

Class

ActionLinkTypeBase
Provides a base class for all link types.

Namespace

Drupal\flag\ActionLink

Code

protected abstract function getUrl($action, FlagInterface $flag, EntityInterface $entity);