You are here

public function ConfigurableProcessorBase::provideSettings in Gutenberg 8.2

Returns a block processor's settings array.

It shouldn't modify the $form array.

Parameters

array $form: A minimally prepopulated form array.

\Drupal\Core\Form\FormStateInterface $form_state: The state of the (entire) configuration form.

Return value

array The $form array with additional form elements for the settings of this processor. The form values should match $this->defaultConfiguration().

Overrides GutenbergConfigurableBlockProcessorInterface::provideSettings

1 method overrides ConfigurableProcessorBase::provideSettings()
OEmbedProcessor::provideSettings in src/BlockProcessor/OEmbedProcessor.php
Returns a block processor's settings array.

File

src/BlockProcessor/ConfigurableProcessorBase.php, line 34

Class

ConfigurableProcessorBase
Base class for configurable processors.

Namespace

Drupal\gutenberg\BlockProcessor

Code

public function provideSettings(array $form, FormStateInterface $form_state) {
  return [];
}