public function withDisabledLabels(callable $disabledLabelCallback)
    {
        $this->updateOptions(function (ObjectIdentityOptions $options) use ($disabledLabelCallback) {
            return $options->withDisabledLabelCallback($disabledLabelCallback);
        });

        return $this;
    }
public function withDisabledLabels(callable $disabledLabelCallback)
    {
        $this->updateOptions(function (ObjectIdentityOptions $options) use ($disabledLabelCallback) {
            return $options->withDisabledLabelCallback($disabledLabelCallback);
        });

        return $this;
    }
public function withDisabledLabels ( callable $ disabledLabelCallback ) { $ this -> updateOptions ( function ( ObjectIdentityOptions $ options ) use ( $ disabledLabelCallback ) { return $ options -> withDisabledLabelCallback ( $ disabledLabelCallback ) ; } ) ; return $ this ; }
Changes the labels of the disabled items with the supplied callback.

Example:
<code>
->withDisabledLabels(function (string $originalLabel) : string {
return 'Disabled: ' . $originalLabel;
})
</code>

@param callable $disabledLabelCallback

@return static
Changes the labels of the disabled items with the supplied callback .