class DiffOpDelete

Same name in other branches
  1. 9 core/lib/Drupal/Component/Diff/Engine/DiffOpDelete.php \Drupal\Component\Diff\Engine\DiffOpDelete
  2. 10 core/lib/Drupal/Component/Diff/Engine/DiffOpDelete.php \Drupal\Component\Diff\Engine\DiffOpDelete
  3. 11.x core/lib/Drupal/Component/Diff/Engine/DiffOpDelete.php \Drupal\Component\Diff\Engine\DiffOpDelete

@todo document @private @subpackage DifferenceEngine

Hierarchy

  • class \Drupal\Component\Diff\Engine\DiffOp
    • class \Drupal\Component\Diff\Engine\DiffOpDelete extends \Drupal\Component\Diff\Engine\DiffOp

Expanded class hierarchy of DiffOpDelete

1 file declares its use of DiffOpDelete
DiffEngineTest.php in core/tests/Drupal/Tests/Component/Diff/Engine/DiffEngineTest.php

File

core/lib/Drupal/Component/Diff/Engine/DiffOpDelete.php, line 10

Namespace

Drupal\Component\Diff\Engine
View source
class DiffOpDelete extends DiffOp {
    public $type = 'delete';
    public function __construct($lines) {
        $this->orig = $lines;
        $this->closing = FALSE;
    }
    public function reverse() {
        return new DiffOpAdd($this->orig);
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
DiffOp::$closing public property
DiffOp::$orig public property
DiffOp::nclosing public function
DiffOp::norig public function
DiffOpDelete::$type public property Overrides DiffOp::$type
DiffOpDelete::reverse public function Overrides DiffOp::reverse
DiffOpDelete::__construct public function

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.