You are here

public function GutenbergBlockProcessorInterface::processBlock in Gutenberg 8.2

Process the Gutenberg block and its content.

The content and block can be manipulated here. Return FALSE to ensure that no other plugins are ran after this instance.

Parameters

array $block: The block object.

string $block_content: The inner block content.

\Drupal\Core\Cache\RefinableCacheableDependencyInterface $bubbleable_metadata: The bubbleable metadata.

Return value

bool|null Return FALSE if further processing should be stopped.

5 methods override GutenbergBlockProcessorInterface::processBlock()
DrupalBlockProcessor::processBlock in src/BlockProcessor/DrupalBlockProcessor.php
Process the Gutenberg block and its content.
DynamicRenderProcessor::processBlock in src/BlockProcessor/DynamicRenderProcessor.php
Process the Gutenberg block and its content.
FieldMappingProcessor::processBlock in src/BlockProcessor/FieldMappingProcessor.php
Process the Gutenberg block and its content.
OEmbedProcessor::processBlock in src/BlockProcessor/OEmbedProcessor.php
Process the Gutenberg block and its content.
ReusableBlockProcessor::processBlock in src/BlockProcessor/ReusableBlockProcessor.php
Process the Gutenberg block and its content.

File

src/BlockProcessor/GutenbergBlockProcessorInterface.php, line 28

Class

GutenbergBlockProcessorInterface
Defines an interface for classes that process Gutenberg blocks.

Namespace

Drupal\gutenberg\BlockProcessor

Code

public function processBlock(array &$block, &$block_content, RefinableCacheableDependencyInterface $bubbleable_metadata);