HWLDFWordAccumulator::_flushGroup

protected HWLDFWordAccumulator::_flushGroup($new_tag)

File

core/lib/Drupal/Component/Diff/Engine/HWLDFWordAccumulator.php, line 31

Class

HWLDFWordAccumulator
@todo document @private @subpackage DifferenceEngine

Namespace

Drupal\Component\Diff\Engine

Code

protected function _flushGroup($new_tag) {
  if ($this->group !== '') {
    if ($this->tag == 'mark') {
      $this->line = $this->line . '<span class="diffchange">' . $this->group . '</span>';
    }
    else {
      $this->line = $this->line . $this->group;
    }
  }
  $this->group = '';
  $this->tag = $new_tag;
}
doc_Drupal
2016-10-29 09:18:59
Comments
Leave a Comment

Please login to continue.