You are here

interface GutenbergConfigurableBlockProcessorInterface in Gutenberg 8.2

Defines an interface for configurable Gutenberg block processors.

Hierarchy

Expanded class hierarchy of GutenbergConfigurableBlockProcessorInterface

All classes that implement GutenbergConfigurableBlockProcessorInterface

1 file declares its use of GutenbergConfigurableBlockProcessorInterface
GutenbergFilter.php in src/Plugin/Filter/GutenbergFilter.php

File

src/BlockProcessor/GutenbergConfigurableBlockProcessorInterface.php, line 10

Namespace

Drupal\gutenberg\BlockProcessor
View source
interface GutenbergConfigurableBlockProcessorInterface {

  /**
   * Returns a block processor's settings array.
   *
   * It shouldn't modify the $form array.
   *
   * @param array $form
   *   A minimally prepopulated form array.
   * @param \Drupal\Core\Form\FormStateInterface $form_state
   *   The state of the (entire) configuration form.
   *
   * @return array
   *   The $form array with additional form elements for the settings of this
   *   processor. The form values should match $this->defaultConfiguration().
   */
  public function provideSettings(array $form, FormStateInterface $form_state);

  /**
   * Provide the current filter settings.
   *
   * @param array $settings
   *   The current settings.
   */
  public function setSettings(array $settings);

  /**
   * Gets default configuration for this processor.
   *
   * @return array
   *   The default configuration.
   */
  public function defaultConfiguration();

}

Members

Namesort descending Modifiers Type Description Overrides
GutenbergConfigurableBlockProcessorInterface::defaultConfiguration public function Gets default configuration for this processor. 1
GutenbergConfigurableBlockProcessorInterface::provideSettings public function Returns a block processor's settings array. 1
GutenbergConfigurableBlockProcessorInterface::setSettings public function Provide the current filter settings. 1