abstract class ConfigurableProcessorBase in Gutenberg 8.2
Base class for configurable processors.
@package Drupal\gutenberg\BlockProcessor
Hierarchy
- class \Drupal\gutenberg\BlockProcessor\ConfigurableProcessorBase implements GutenbergBlockProcessorInterface, GutenbergConfigurableBlockProcessorInterface uses StringTranslationTrait
Expanded class hierarchy of ConfigurableProcessorBase
File
- src/
BlockProcessor/ ConfigurableProcessorBase.php, line 13
Namespace
Drupal\gutenberg\BlockProcessorView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigurableProcessorBase:: |
protected | property | The current Gutenberg filter settings. | |
ConfigurableProcessorBase:: |
public | function |
Returns a block processor's settings array. Overrides GutenbergConfigurableBlockProcessorInterface:: |
1 |
ConfigurableProcessorBase:: |
public | function |
Provide the current filter settings. Overrides GutenbergConfigurableBlockProcessorInterface:: |
1 |
GutenbergBlockProcessorInterface:: |
public | function | Whether the processor supports this block instance. | 5 |
GutenbergBlockProcessorInterface:: |
public | function | Process the Gutenberg block and its content. | 5 |
GutenbergConfigurableBlockProcessorInterface:: |
public | function | Gets default configuration for this processor. | 1 |
StringTranslationTrait:: |
protected | property | The string translation service. | 1 |
StringTranslationTrait:: |
protected | function | Formats a string containing a count of items. | |
StringTranslationTrait:: |
protected | function | Returns the number of plurals supported by a given language. | |
StringTranslationTrait:: |
protected | function | Gets the string translation service. | |
StringTranslationTrait:: |
public | function | Sets the string translation service to use. | 2 |
StringTranslationTrait:: |
protected | function | Translates a string to the current language or to a given language. |