protected function Flag::getFlagTypeCollection in Flag 8.4
Encapsulates the creation of the flag type's plugin collection.
Return value
\Drupal\Component\Plugin\DefaultSingleLazyPluginCollection The flag type's plugin collection.
1 call to Flag::getFlagTypeCollection()
- Flag::getPluginCollections in src/
Entity/ Flag.php - Gets the plugin collections used by this object.
File
- src/
Entity/ Flag.php, line 259
Class
- Flag
- Provides the Flag configuration entity.
Namespace
Drupal\flag\EntityCode
protected function getFlagTypeCollection() {
if (!$this->flagTypeCollection) {
$this->flagTypeCollection = new DefaultSingleLazyPluginCollection(\Drupal::service('plugin.manager.flag.flagtype'), $this->flag_type, $this->flagTypeConfig);
}
return $this->flagTypeCollection;
}