protected function 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\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; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Component!Diff!Engine!HWLDFWordAccumulator.php/function/HWLDFWordAccumulator::_flushGroup/8.1.x