You are here

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

Class

DrupalBlockProcessor
Processes Drupal blocks than can be embedded.

Namespace

Drupal\gutenberg\BlockProcessor

Code

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