You are here

public function DynamicRenderProcessor::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.

Overrides GutenbergBlockProcessorInterface::isSupported

File

src/BlockProcessor/DynamicRenderProcessor.php, line 108

Class

DynamicRenderProcessor
Processes blocks which can be rendered dynamically server-side.

Namespace

Drupal\gutenberg\BlockProcessor

Code

public function isSupported(array $block, $block_content = '') {
  return isset($this
    ->getDynamicBlockNames()[$block['blockName']]);
}