public function getBlockTypes(): array
    {
        if ($this->_blockTypes !== null) {
            return $this->_blockTypes;
        }

        if ($this->getIsNew()) {
            return [];
        }

        return $this->_blockTypes = SuperTable::$plugin->getService()->getBlockTypesByFieldId($this->id);
    }
public function getBlockTypes(): array
    {
        if ($this->_blockTypes !== null) {
            return $this->_blockTypes;
        }

        if ($this->getIsNew()) {
            return [];
        }

        return $this->_blockTypes = SuperTable::$plugin->getService()->getBlockTypesByFieldId($this->id);
    }
public function getBlockTypes ( ) : array { if ( $ this -> _blockTypes !== null ) { return $ this -> _blockTypes ; } if ( $ this -> getIsNew ( ) ) { return [ ] ; } return $ this -> _blockTypes = SuperTable :: $ plugin -> getService ( ) -> getBlockTypesByFieldId ( $ this -> id ) ; }
Returns the block types.

@return SuperTableBlockType[]
Returns the block types .