NullSegmenter.php in Translation Management Tool 8
File
src/NullSegmenter.php
View source
<?php
namespace Drupal\tmgmt;
use Drupal\Core\Form\FormStateInterface;
class NullSegmenter implements SegmenterInterface {
public function filterData($segmented_text) {
return $segmented_text;
}
public function getSegmentsOfData($serialized_data) {
return [];
}
public function getSegmentedData($data) {
return $data;
}
public function validateFormTranslation(FormStateInterface &$form_state, $element, JobItemInterface $job_item) {
}
}