Same filename and directory in other branches
  1. 8.9.x core/lib/Drupal/Component/Diff/Engine/DiffOpDelete.php
  2. 9 core/lib/Drupal/Component/Diff/Engine/DiffOpDelete.php

Namespace

Drupal\Component\Diff\Engine

File

core/lib/Drupal/Component/Diff/Engine/DiffOpDelete.php
View source
<?php

namespace Drupal\Component\Diff\Engine;


/**
 * @todo document
 * @private
 * @subpackage DifferenceEngine
 */
class DiffOpDelete extends DiffOp {
  public $type = 'delete';
  public function __construct($lines) {
    $this->orig = $lines;
    $this->closing = FALSE;
  }

  /**
   * @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 DiffOpAdd($this->orig);
  }

}

Classes

Namesort descending Description
DiffOpDelete @todo document @private @subpackage DifferenceEngine