You are here

public function Flag::getLinkTypePlugin in Flag 8.4

Get the link type plugin for this flag.

Return value

\Drupal\flag\ActionLink\ActionLinkTypePluginInterface The link type plugin for the flag.

Overrides FlagInterface::getLinkTypePlugin

File

src/Entity/Flag.php, line 297

Class

Flag
Provides the Flag configuration entity.

Namespace

Drupal\flag\Entity

Code

public function getLinkTypePlugin() {
  return $this
    ->getLinkTypeCollection()
    ->get($this->link_type);
}