src/ManagementResources/IsPublishable.php
function unpublish($id, $previous)
    {
        $this->requestDecorator->setId($id  . '/published');
        $this->requestDecorator->addHeader('X-Contentful-Version', $previous['sys']['version']);
        $result = $this->client->delete($this->requestDecorator->makeResource(), $this->requestDecorator->makeHeaders());
        $this->refresh();
        return $result;
    }
function unpublish($id, $previous)
    {
        $this->requestDecorator->setId($id  . '/published');
        $this->requestDecorator->addHeader('X-Contentful-Version', $previous['sys']['version']);
        $result = $this->client->delete($this->requestDecorator->makeResource(), $this->requestDecorator->makeHeaders());
        $this->refresh();
        return $result;
    }
function unpublish ( $ id , $ previous ) { $ this -> requestDecorator -> setId ( $ id . '/published' ) ; $ this -> requestDecorator -> addHeader ( 'X-Contentful-Version' , $ previous [ 'sys' ] [ 'version' ] ) ; $ result = $ this -> client -> delete ( $ this -> requestDecorator -> makeResource ( ) , $ this -> requestDecorator -> makeHeaders ( ) ) ; $ this -> refresh ( ) ; return $ result ; }
Unublish a record.
@param $id
@param $previous
@return mixed
Unublish a record .