function DiffOpOutputBuilder::getDiff

Same name in other branches
  1. 10 core/lib/Drupal/Component/Diff/DiffOpOutputBuilder.php \Drupal\Component\Diff\DiffOpOutputBuilder::getDiff()

File

core/lib/Drupal/Component/Diff/DiffOpOutputBuilder.php, line 26

Class

DiffOpOutputBuilder
Returns a diff as an array of DiffOp operations.

Namespace

Drupal\Component\Diff

Code

public function getDiff(array $diff) : string {
    return serialize($this->toOpsArray($diff));
}

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