Core/src/ConcurrencyControlTrait.php
private function applyEtagHeader(array $options, $argName = 'etag')
    {
        if (isset($options[$argName])) {
            if (!isset($options['restOptions'])) {
                $options['restOptions'] = [];
            }

            if (!isset($options['restOptions']['headers'])) {
                $options['restOptions']['headers'] = [];
            }

            $options['restOptions']['headers']['If-Match'] = $options[$argName];
        }

        return $options;
    }
private function applyEtagHeader(array $options, $argName = 'etag')
    {
        if (isset($options[$argName])) {
            if (!isset($options['restOptions'])) {
                $options['restOptions'] = [];
            }

            if (!isset($options['restOptions']['headers'])) {
                $options['restOptions']['headers'] = [];
            }

            $options['restOptions']['headers']['If-Match'] = $options[$argName];
        }

        return $options;
    }
private function applyEtagHeader ( array $ options , $ argName = 'etag' ) { if ( isset ( $ options [ $ argName ] ) ) { if ( ! isset ( $ options [ 'restOptions' ] ) ) { $ options [ 'restOptions' ] = [ ] ; } if ( ! isset ( $ options [ 'restOptions' ] [ 'headers' ] ) ) { $ options [ 'restOptions' ] [ 'headers' ] = [ ] ; } $ options [ 'restOptions' ] [ 'headers' ] [ 'If-Match' ] = $ options [ $ argName ] ; } return $ options ; }
Apply the If-Match header to requests requiring concurrency control.

@param array $options
@param string $argName
@return array
Apply the If - Match header to requests requiring concurrency control .