eZ\Bundle\EzPublishRestBundle\Features\Context\SubContext\ContentTypeGroup::updateContentTypeGroupIdentifier PHP Method

updateContentTypeGroupIdentifier() public method

public updateContentTypeGroupIdentifier ( $old, $new )
    public function updateContentTypeGroupIdentifier($old, $new)
    {
        // load the ContentTypeGroup to be updated
        $contentTypeGroup = $this->getRepository()->getContentTypeService()->loadContentTypeGroupByIdentifier($old);
        $this->createRequest('patch', '/content/typegroups/' . $contentTypeGroup->id);
        $this->setHeaderWithObject('content-type', 'ContentTypeGroupInput');
        $this->setHeaderWithObject('accept', 'ContentTypeGroup');
        $this->makeObject('ContentTypeGroupUpdateStruct');
        $this->setFieldToValue('identifier', $new);
        $this->sendRequest();
    }