You are here

public function GutenbergBlockProcessorInterface::isSupported in Gutenberg 8.2

Whether the processor supports this block instance.

Parameters

array $block: The block array.

string $block_content: The inner block content.

Return value

bool Whether the block is supported.

5 methods override GutenbergBlockProcessorInterface::isSupported()
DrupalBlockProcessor::isSupported in src/BlockProcessor/DrupalBlockProcessor.php
Whether the processor supports this block instance.
DynamicRenderProcessor::isSupported in src/BlockProcessor/DynamicRenderProcessor.php
Whether the processor supports this block instance.
FieldMappingProcessor::isSupported in src/BlockProcessor/FieldMappingProcessor.php
Whether the processor supports this block instance.
OEmbedProcessor::isSupported in src/BlockProcessor/OEmbedProcessor.php
Whether the processor supports this block instance.
ReusableBlockProcessor::isSupported in src/BlockProcessor/ReusableBlockProcessor.php
Whether the processor supports this block instance.

File

src/BlockProcessor/GutenbergBlockProcessorInterface.php, line 41

Class

GutenbergBlockProcessorInterface
Defines an interface for classes that process Gutenberg blocks.

Namespace

Drupal\gutenberg\BlockProcessor

Code

public function isSupported(array $block, $block_content = '');