You are here

public function ReusableBlockProcessor::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/ReusableBlockProcessor.php, line 90

Class

ReusableBlockProcessor
Processes Gutenberg reusable blocks.

Namespace

Drupal\gutenberg\BlockProcessor

Code

public function isSupported(array $block, $block_content = '') {
  return $block['blockName'] === 'core/block';
}