lib/Block/BlockType/BlockTypeFactory.php
public static function buildBlockType(string $identifier, array $config, BlockDefinitionInterface $blockDefinition): BlockType
    {
        return BlockType::fromArray(
            [
                'identifier' => $identifier,
                'isEnabled' => $config['enabled'],
                'name' => $config['name'],
                'icon' => $config['icon'],
                'definition' => $blockDefinition,
                'defaults' => $config['defaults'],
            ]
        );
    }
public static function buildBlockType(string $identifier, array $config, BlockDefinitionInterface $blockDefinition): BlockType
    {
        return BlockType::fromArray(
            [
                'identifier' => $identifier,
                'isEnabled' => $config['enabled'],
                'name' => $config['name'],
                'icon' => $config['icon'],
                'definition' => $blockDefinition,
                'defaults' => $config['defaults'],
            ]
        );
    }
public static function buildBlockType ( string $ identifier , array $ config , BlockDefinitionInterface $ blockDefinition ) : BlockType { return BlockType :: fromArray ( [ 'identifier' => $ identifier , 'isEnabled' => $ config [ 'enabled' ] , 'name' => $ config [ 'name' ] , 'icon' => $ config [ 'icon' ] , 'definition' => $ blockDefinition , 'defaults' => $ config [ 'defaults' ] , ] ) ; }
Builds the block type.
Builds the block type .