class LegacyData (View source)

The LegacyData class handles the conversion of legacy block data.

Properties

private $data The actual data object that has to be tested and converted.
private $targetVersion The target version that has to be supported.

Methods

__construct(object $data)

The legacy data converter constructor.

object
convert()

Convert legacy data such as layout information.

object
convertLayout(object $data)

Convert legacy layout properties to new tune api.

object
convertLists(object $data)

Convert legacy lists to new nested lists.

Details

__construct(object $data)

The legacy data converter constructor.

Parameters

object $data

object convert()

Convert legacy data such as layout information.

Return Value

object $data

private object convertLayout(object $data)

Convert legacy layout properties to new tune api.

Parameters

object $data

Return Value

object $data

private object convertLists(object $data)

Convert legacy lists to new nested lists.

Parameters

object $data

Return Value

object $data