Copy block entity data in loot table

Is it possible to copy a spawner block data to an item inside of a loot table ? I want to drop a spawner with all its data when some tool is used. Below is what I have. The problem does not come from the condition, as the item is renamed when the right tool is used.

{
  "type": "minecraft:block",
  "pools": [
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:spawner",
          "functions": [
            {
              "function": "minecraft:set_name",
              "entity": "this",
              "name": "aaaaaaaaaaaaaa"
            },
            {
              "function": "minecraft:copy_components",
              "source": "block_entity",
              "include": [
                "minecraft:block_entity_data"
              ]
            }
          ]
        }
      ],
      "conditions": [
        {
          "condition": "minecraft:match_tool",
          "predicate": {
            "items": [
              "minecraft:diamond_pickaxe"
            ]
          }
        }
      ]
    }
  ]
}
Continue to help post