Zendesk\API\Resources\Core\Views::getIdFromParams PHP Method

getIdFromParams() private method

Get the ticket ID from the chained parameters or a params array
private getIdFromParams ( array &$params ) : string
$params array
return string
    private function getIdFromParams(array &$params)
    {
        if (!isset($params['id'])) {
            $id = $this->getChainedParameter(get_class($this));
        } else {
            $id = $params['id'];
            unset($params['id']);
        }
        return $id;
    }