Craft\Neo_SettingsModel::getBlockTypes PHP Method

getBlockTypes() public method

Returns the fields' block types.
public getBlockTypes ( ) : array
return array
    public function getBlockTypes()
    {
        if (!isset($this->_blockTypes)) {
            if ($this->_neoField && !empty($this->_neoField->id)) {
                $this->_blockTypes = craft()->neo->getBlockTypesByFieldId($this->_neoField->id);
            } else {
                $this->_blockTypes = [];
            }
        }
        return $this->_blockTypes;
    }