You are here

abstract class ConfigurableProcessorBase in Gutenberg 8.2

Base class for configurable processors.

@package Drupal\gutenberg\BlockProcessor

Hierarchy

Expanded class hierarchy of ConfigurableProcessorBase

File

src/BlockProcessor/ConfigurableProcessorBase.php, line 13

Namespace

Drupal\gutenberg\BlockProcessor
View source
abstract class ConfigurableProcessorBase implements GutenbergBlockProcessorInterface, GutenbergConfigurableBlockProcessorInterface {
  use StringTranslationTrait;

  /**
   * The current Gutenberg filter settings.
   *
   * @var array
   */
  protected $settings;

  /**
   * {@inheritdoc}
   */
  public function setSettings(array $settings) {
    $this->settings = $settings;
  }

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

}

Members

Namesort descending Modifiers Type Description Overrides
ConfigurableProcessorBase::$settings protected property The current Gutenberg filter settings.
ConfigurableProcessorBase::provideSettings public function Returns a block processor's settings array. Overrides GutenbergConfigurableBlockProcessorInterface::provideSettings 1
ConfigurableProcessorBase::setSettings public function Provide the current filter settings. Overrides GutenbergConfigurableBlockProcessorInterface::setSettings 1
GutenbergBlockProcessorInterface::isSupported public function Whether the processor supports this block instance. 5
GutenbergBlockProcessorInterface::processBlock public function Process the Gutenberg block and its content. 5
GutenbergConfigurableBlockProcessorInterface::defaultConfiguration public function Gets default configuration for this processor. 1
StringTranslationTrait::$stringTranslation protected property The string translation service. 1
StringTranslationTrait::formatPlural protected function Formats a string containing a count of items.
StringTranslationTrait::getNumberOfPlurals protected function Returns the number of plurals supported by a given language.
StringTranslationTrait::getStringTranslation protected function Gets the string translation service.
StringTranslationTrait::setStringTranslation public function Sets the string translation service to use. 2
StringTranslationTrait::t protected function Translates a string to the current language or to a given language.