You are here

public function RealisticDummyContentValueField::format in Realistic Dummy Content 3.x

Mockable wrapper around the formatter.

Parameters

mixed $value: A file, or string.

Return value

array A formatted item.

1 call to RealisticDummyContentValueField::format()
RealisticDummyContentValueField::implementValueFromFile in api/src/includes/RealisticDummyContentValueField.php
Given a RealisticDummyContentFileGroup object, get a structured property.

File

api/src/includes/RealisticDummyContentValueField.php, line 35

Class

RealisticDummyContentValueField
Generic Drupal field.

Namespace

Drupal\realistic_dummy_content_api\includes

Code

public function format($value) : array {
  return Framework::instance()
    ->formatProperty('value', $value);
}