function IconExtractorPluginManager::getExtractorForm

Get an extractor settings form.

Parameters

array $icon_pack_configuration: The extractor configuration.

Return value

\Drupal\Core\Plugin\PluginFormInterface|null The extractor form or null.

1 call to IconExtractorPluginManager::getExtractorForm()
IconExtractorPluginManager::getExtractorForms in core/lib/Drupal/Core/Theme/Icon/IconExtractorPluginManager.php
Get multiple extractor settings form.

File

core/lib/Drupal/Core/Theme/Icon/IconExtractorPluginManager.php, line 74

Class

IconExtractorPluginManager
IconExtractor plugin manager.

Namespace

Drupal\Core\Theme\Icon

Code

public function getExtractorForm(array $icon_pack_configuration) : ?PluginFormInterface {
    if (!isset($icon_pack_configuration['settings'])) {
        return NULL;
    }
    
    /** @var \Drupal\Core\Theme\Icon\IconExtractorInterface $plugin */
    $plugin = $this->createInstance($icon_pack_configuration['extractor'], $icon_pack_configuration);
    return $this->getPluginForm($plugin);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.