public function createContent(array $args): array
    {
        $post = $this->getDriver()->content->create($args);

        return array(
            'id'   => (int) $post->ID,
            'slug' => $post->post_name,
            'url'  => $post->url,
        );
    }
public function createContent(array $args): array
    {
        $post = $this->getDriver()->content->create($args);

        return array(
            'id'   => (int) $post->ID,
            'slug' => $post->post_name,
            'url'  => $post->url,
        );
    }
public function createContent ( array $ args ) : array { $ post = $ this -> getDriver ( ) -> content -> create ( $ args ) ; return array ( 'id' => ( int ) $ post -> ID , 'slug' => $ post -> post_name , 'url' => $ post -> url , ) ; }
Create content.

@param array $args Set the values of the new content item.

@return array {
@type int    $id   Content ID.
@type string $slug Content slug.
@type string $url  Content permalink.
}
Create content .