public function add($identifier, $title)
    {
        $identifier = Inflector::slug($identifier);
        $this->_variations[$identifier] = [
            'title' => $title,
            'cfgs' => [],
            'vars' => [],
            'extras' => [],
            'is_default' => false,
        ];
        $this->_tempIdentifier = $identifier;
        return $this;
    }
public function add($identifier, $title)
    {
        $identifier = Inflector::slug($identifier);
        $this->_variations[$identifier] = [
            'title' => $title,
            'cfgs' => [],
            'vars' => [],
            'extras' => [],
            'is_default' => false,
        ];
        $this->_tempIdentifier = $identifier;
        return $this;
    }
public function add ( $ identifier , $ title ) { $ identifier = Inflector :: slug ( $ identifier ) ; $ this -> _variations [ $ identifier ] = [ 'title' => $ title , 'cfgs' => [ ] , 'vars' => [ ] , 'extras' => [ ] , 'is_default' => false , ] ; $ this -> _tempIdentifier = $ identifier ; return $ this ; }
Register a new flavor.

@param string $identifier
@param string $title
@return \luya\cms\base\BlockVariationRegister
Register a new flavor .