function IconExtractorPluginManager::getPluginForm
Retrieves the plugin form for a given icon extractor.
Parameters
\Drupal\Core\Theme\Icon\IconExtractorInterface $icon_extractor: The ui icons extractor plugin.
Return value
\Drupal\Core\Plugin\PluginFormInterface The plugin form for this plugin.
1 call to IconExtractorPluginManager::getPluginForm()
- IconExtractorPluginManager::getExtractorForm in core/
lib/ Drupal/ Core/ Theme/ Icon/ IconExtractorPluginManager.php - Get an extractor settings form.
File
-
core/
lib/ Drupal/ Core/ Theme/ Icon/ IconExtractorPluginManager.php, line 92
Class
- IconExtractorPluginManager
- IconExtractor plugin manager.
Namespace
Drupal\Core\Theme\IconCode
protected function getPluginForm(IconExtractorInterface $icon_extractor) : PluginFormInterface {
if ($icon_extractor instanceof PluginWithFormsInterface) {
return $this->pluginFormFactory
->createInstance($icon_extractor, 'settings');
}
return $icon_extractor;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.