class DiffOpCopy

@todo document @private @subpackage DifferenceEngine

Hierarchy

Expanded class hierarchy of DiffOpCopy

3 files declare their use of DiffOpCopy
DiffFormatter.php in core/lib/Drupal/Component/Diff/DiffFormatter.php
DiffOpOutputBuilder.php in core/lib/Drupal/Component/Diff/DiffOpOutputBuilder.php
DiffOpOutputBuilderTest.php in core/tests/Drupal/Tests/Component/Diff/DiffOpOutputBuilderTest.php

File

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

Namespace

Drupal\Component\Diff\Engine
View source
class DiffOpCopy extends DiffOp {
  public $type = 'copy';
  public function __construct($orig, $closing = FALSE) {
    if (!is_array($closing)) {
      $closing = $orig;
    }
    $this->orig = $orig;
    $this->closing = $closing;
  }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
DiffOp::$closing public property
DiffOp::$orig public property
DiffOpCopy::$type public property Overrides DiffOp::$type
DiffOpCopy::__construct public function

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