DiffOpChange.php
Same filename in other branches
Namespace
Drupal\Component\Diff\EngineFile
-
core/
lib/ Drupal/ Component/ Diff/ Engine/ DiffOpChange.php
View source
<?php
namespace Drupal\Component\Diff\Engine;
/**
* @todo document
* @private
* @subpackage DifferenceEngine
*/
class DiffOpChange extends DiffOp {
public $type = 'change';
public function __construct($orig, $closing) {
$this->orig = $orig;
$this->closing = $closing;
}
/**
* @deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. There is no
* replacement.
*
* @see https://www.drupal.org/node/3337942
*/
public function reverse() {
@trigger_error(__METHOD__ . '() is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/node/3337942', E_USER_DEPRECATED);
return new DiffOpChange($this->closing, $this->orig);
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
DiffOpChange | @todo document @private @subpackage DifferenceEngine |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.