public function OEmbedProcessor::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/ OEmbedProcessor.php, line 159
Class
- OEmbedProcessor
- Processes oEmbed blocks.
Namespace
Drupal\gutenberg\BlockProcessorCode
public function isSupported(array $block, $block_content = '') {
return $block['blockName'] === 'core/embed' || substr($block['blockName'], 0, 11) === 'core-embed/';
}