You are here

public function NullSegmenter::getSegmentsOfData in Translation Management Tool 8

Returns the segments in the data.

Parameters

string $serialized_data: A string with the XML serialized data.

Return value

array An array with the the segments. Example: [ [ 'hash' => 'e1a937a716311fd11c2079b6209d513a4048cef9fb5a0425c2be77ee3b1fa743', 'id' => 'ID 1', 'data' => 'Segment 1', ], [ 'hash' => 'c8e90d4ed846ff50bdf5603b1f683e71a56c923ea65306a2f2f95300d16d79e9', 'id' => 'ID 2', 'data' => 'Segment 2', ], ]

Overrides SegmenterInterface::getSegmentsOfData

File

src/NullSegmenter.php, line 22

Class

NullSegmenter
Null implementation for the SegmenterInterface.

Namespace

Drupal\tmgmt

Code

public function getSegmentsOfData($serialized_data) {
  return [];
}