public function setBlockVariations(array $config)
    {
        $_variations = [];
        foreach ($config as $key => $content) {
            if (is_numeric($key) && is_array($content)) {
                $_variations[key($content)] = array_shift($content);
            } else {
                $_variations[$key] = $content;
            }
        }
        $this->_blockVariations = $_variations;
    }
public function setBlockVariations(array $config)
    {
        $_variations = [];
        foreach ($config as $key => $content) {
            if (is_numeric($key) && is_array($content)) {
                $_variations[key($content)] = array_shift($content);
            } else {
                $_variations[$key] = $content;
            }
        }
        $this->_blockVariations = $_variations;
    }
public function setBlockVariations ( array $ config ) { $ _variations = [ ] ; foreach ( $ config as $ key => $ content ) { if ( is_numeric ( $ key ) && is_array ( $ content ) ) { $ _variations [ key ( $ content ) ] = array_shift ( $ content ) ; } else { $ _variations [ $ key ] = $ content ; } } $ this -> _blockVariations = $ _variations ; }
Set block variations.

```php
'blockVariations' => [
TextBlock::class => [
'variation1' => [
'title' => 'Super Bold Text',
'vars' => ['cssClass' => 'bold-font-css-class'],
'cfgs' => [], // will be ignore as its empty, so you can also just remove this part.
'extras' => [], // will be ignore as its empty, so you can also just remove this part.
'is_default' => false, // where this is the default value or not
],
]
]
```

@param array $config
Set block variations .