FieldMappingProcessor.php in Gutenberg 8.2
File
src/BlockProcessor/FieldMappingProcessor.php
View source
<?php
namespace Drupal\gutenberg\BlockProcessor;
use Drupal\Core\Cache\RefinableCacheableDependencyInterface;
class FieldMappingProcessor implements GutenbergBlockProcessorInterface {
public function processBlock(array &$block, &$block_content, RefinableCacheableDependencyInterface $bubbleable_metadata) {
$block_content = '';
}
public function isSupported(array $block, $block_content = '') {
return !empty($block['attrs']['mappingFields']) && is_array($block['attrs']['mappingFields']);
}
}