You are here

public function Flag::getFlagTypePlugin in Flag 8.4

Get the flag type plugin.

Return value

\Drupal\flag\FlagType\FlagTypePluginInterface The flag type plugin for the flag.

Overrides FlagInterface::getFlagTypePlugin

1 call to Flag::getFlagTypePlugin()
Flag::setFlagTypePlugin in src/Entity/Flag.php
Set the flag type plugin.

File

src/Entity/Flag.php, line 272

Class

Flag
Provides the Flag configuration entity.

Namespace

Drupal\flag\Entity

Code

public function getFlagTypePlugin() {
  return $this
    ->getFlagTypeCollection()
    ->get($this->flag_type);
}