public function getContentTypeFields($contenttypeslug)
    {
        $contenttype = $this->getContentType($contenttypeslug);

        if (empty($contenttype['fields'])) {
            return [];
        } else {
            return array_keys($contenttype['fields']);
        }
    }
public function getContentTypeFields($contenttypeslug)
    {
        $contenttype = $this->getContentType($contenttypeslug);

        if (empty($contenttype['fields'])) {
            return [];
        } else {
            return array_keys($contenttype['fields']);
        }
    }
public function getContentTypeFields ( $ contenttypeslug ) { $ contenttype = $ this -> getContentType ( $ contenttypeslug ) ; if ( empty ( $ contenttype [ 'fields' ] ) ) { return [ ] ; } else { return array_keys ( $ contenttype [ 'fields' ] ) ; } }
Get an array of the available fields for a given contenttype.

@param string $contenttypeslug

@return array $fields
Get an array of the available fields for a given contenttype .