protected function HWLDFWordAccumulator::_flushGroup in Service Container 7.2
Same name and namespace in other branches
- 7 lib/Drupal/Component/Diff/Engine/HWLDFWordAccumulator.php \Drupal\Component\Diff\Engine\HWLDFWordAccumulator::_flushGroup()
2 calls to HWLDFWordAccumulator::_flushGroup()
- HWLDFWordAccumulator::addWords in lib/
Drupal/ Component/ Diff/ Engine/ HWLDFWordAccumulator.php - HWLDFWordAccumulator::_flushLine in lib/
Drupal/ Component/ Diff/ Engine/ HWLDFWordAccumulator.php
File
- lib/
Drupal/ Component/ Diff/ Engine/ HWLDFWordAccumulator.php, line 37 - Contains \Drupal\Component\Diff\Engine\HWLDFWordAccumulator.
Class
- HWLDFWordAccumulator
- @todo document @private @subpackage DifferenceEngine
Namespace
Drupal\Component\Diff\EngineCode
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;
}