Newscoop\Entity\Article::getFieldNames PHP Method

getFieldNames() public method

Get all field names for this article type.
public getFieldNames ( ) : mixed
return mixed Returns array with field names or null
    public function getFieldNames()
    {
        if ($this->data === null) {
            return;
        }
        if (is_array($this->data)) {
            return array_keys($this->data);
        } else {
            return $this->data->getUserDefinedColumns(true);
        }
    }