class CommonDataConverter (View source)

Contains methods for common data conversions.

Methods

static mixed
rawValue(mixed $data)

Provides a passthrough to place unformatted values in content attributes.

static string
dateIso8601Value(array $data)

Converts a date entity field array into an ISO 8601 timestamp string.

Details

static mixed rawValue(mixed $data)

Provides a passthrough to place unformatted values in content attributes.

Parameters

mixed $data

The data to be placed in the content attribute.

Return Value

mixed

Returns the data.

static string dateIso8601Value(array $data)

Converts a date entity field array into an ISO 8601 timestamp string.

Parameters

array $data

The array containing the 'value' element.

Return Value

string

Returns the ISO 8601 timestamp.