Habari\Posts::content_type PHP Method

content_type() public method

Return the type of the content represented by this object
public content_type ( ) : array
return array The names of the possible content represented by this object
    function content_type()
    {
        $content_type = array_map(function ($a) {
            return 'posts.' . $a;
        }, $this->preset);
        $content_type[] = 'posts';
        return $content_type;
    }