function IconExtractorPluginManager::getExtractorForms

Get multiple extractor settings form.

Parameters

array $icon_pack_configurations: All the icon pack configurations containing the extractor.

Return value

\Drupal\Core\Plugin\PluginFormInterface[] The extractor form indexed by extractor id.

File

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

Class

IconExtractorPluginManager
IconExtractor plugin manager.

Namespace

Drupal\Core\Theme\Icon

Code

public function getExtractorForms(array $icon_pack_configurations) : array {
    $extractor_forms = [];
    foreach ($icon_pack_configurations as $icon_pack_configuration) {
        $pack_id = $icon_pack_configuration['id'];
        $form = $this->getExtractorForm($icon_pack_configuration);
        if (NULL === $form) {
            continue;
        }
        $extractor_forms[$pack_id] = $form;
    }
    return $extractor_forms;
}

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