You are here

protected function GutenbergFilter::setProviderSettings in Gutenberg 8.2

Set the current provider settings.

2 calls to GutenbergFilter::setProviderSettings()
GutenbergFilter::process in src/Plugin/Filter/GutenbergFilter.php
GutenbergFilter::settingsForm in src/Plugin/Filter/GutenbergFilter.php
Generates a filter's settings form.

File

src/Plugin/Filter/GutenbergFilter.php, line 244

Class

GutenbergFilter
Provides a filter for Gutenberg blocks.

Namespace

Drupal\gutenberg\Plugin\Filter

Code

protected function setProviderSettings() {
  $processors = $this->blockProcessorManager
    ->getSortedProcessors();
  foreach ($processors as $processor) {
    if ($processor instanceof GutenbergConfigurableBlockProcessorInterface) {
      $processor
        ->setSettings($this->settings['processor_settings'] + $processor
        ->defaultConfiguration());
    }
  }
}