class NullSegmenter in Translation Management Tool 8
Null implementation for the SegmenterInterface.
Hierarchy
- class \Drupal\tmgmt\NullSegmenter implements SegmenterInterface
Expanded class hierarchy of NullSegmenter
1 string reference to 'NullSegmenter'
1 service uses NullSegmenter
File
- src/
NullSegmenter.php, line 10
Namespace
Drupal\tmgmtView source
class NullSegmenter implements SegmenterInterface {
/**
* {@inheritdoc}
*/
public function filterData($segmented_text) {
return $segmented_text;
}
/**
* {@inheritdoc}
*/
public function getSegmentsOfData($serialized_data) {
return [];
}
/**
* {@inheritdoc}
*/
public function getSegmentedData($data) {
return $data;
}
/**
* {@inheritdoc}
*/
public function validateFormTranslation(FormStateInterface &$form_state, $element, JobItemInterface $job_item) {
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
NullSegmenter:: |
public | function |
Remove the "tmgmt-segment" tags from the data. Overrides SegmenterInterface:: |
|
NullSegmenter:: |
public | function |
Add the segmented data tag to the data or update it. Overrides SegmenterInterface:: |
|
NullSegmenter:: |
public | function |
Returns the segments in the data. Overrides SegmenterInterface:: |
|
NullSegmenter:: |
public | function |
Validate the segments from the JobItemForm. Overrides SegmenterInterface:: |