src/Service/FieldType.php
public function getAllFlat($bOnlySelectable = false)
    {
        $aAvailable = $this->getAll($bOnlySelectable);
        $aOut       = [];

        foreach ($aAvailable as $oType) {
            $aOut[$oType->slug] = $oType->label;
        }

        return $aOut;
    }
public function getAllFlat($bOnlySelectable = false)
    {
        $aAvailable = $this->getAll($bOnlySelectable);
        $aOut       = [];

        foreach ($aAvailable as $oType) {
            $aOut[$oType->slug] = $oType->label;
        }

        return $aOut;
    }
public function getAllFlat ( $ bOnlySelectable = false ) { $ aAvailable = $ this -> getAll ( $ bOnlySelectable ) ; $ aOut = [ ] ; foreach ( $ aAvailable as $ oType ) { $ aOut [ $ oType -> slug ] = $ oType -> label ; } return $ aOut ; }
Return all the available types of field which can be created as a flat array

@param  boolean $bOnlySelectable Filter out field types which are not selectable by the user

@return array
Return all the available types of field which can be created as a flat array