You are here

protected function Flag::getLinkTypeCollection in Flag 8.4

Encapsulates the creation of the link type's plugin collection.

Return value

\Drupal\Component\Plugin\DefaultSingleLazyPluginCollection The link type's plugin collection.

1 call to Flag::getLinkTypeCollection()
Flag::getPluginCollections in src/Entity/Flag.php
Gets the plugin collections used by this object.

File

src/Entity/Flag.php, line 307

Class

Flag
Provides the Flag configuration entity.

Namespace

Drupal\flag\Entity

Code

protected function getLinkTypeCollection() {
  if (!$this->linkTypeCollection) {
    $this->linkTypeCollection = new DefaultSingleLazyPluginCollection(\Drupal::service('plugin.manager.flag.linktype'), $this->link_type, $this->linkTypeConfig);
  }
  return $this->linkTypeCollection;
}