public function getAttributeIds($bundle = null)
    {
        $attributes = $this->attributes($bundle);
        $ids = [];

        foreach ($attributes as $name => $info) {
            $ids[] = $info['id'];
        }

        return $ids;
    }
public function getAttributeIds($bundle = null)
    {
        $attributes = $this->attributes($bundle);
        $ids = [];

        foreach ($attributes as $name => $info) {
            $ids[] = $info['id'];
        }

        return $ids;
    }
public function getAttributeIds ( $ bundle = null ) { $ attributes = $ this -> attributes ( $ bundle ) ; $ ids = [ ] ; foreach ( $ attributes as $ name => $ info ) { $ ids [ ] = $ info [ 'id' ] ; } return $ ids ; }
Gets a list of attribute IDs.

@param string $bundle Filter by bundle name
@return array
Gets a list of attribute IDs .