Zendesk\API\Traits\Resource\Locales::updateSourceLocale PHP Method

updateSourceLocale() public method

Updates a resource's source_locale property
public updateSourceLocale ( integer $categoryId, string $sourceLocale ) : array
$categoryId integer The category to update
$sourceLocale string The new source_locale
return array
    public function updateSourceLocale($categoryId, $sourceLocale)
    {
        if (empty($categoryId)) {
            $categoryId = $this->getChainedParameter(get_class($this));
        }
        return $this->client->put($this->getRoute(__FUNCTION__, ["{$this->objectName}Id" => $categoryId]), ["{$this->objectName}_locale" => $sourceLocale]);
    }