public function FrameworkInterface::formatProperty in Realistic Dummy Content 8.2
Same name and namespace in other branches
- 7.2 api/src/Framework/FrameworkInterface.php \Drupal\realistic_dummy_content_api\Framework\FrameworkInterface::formatProperty()
- 3.x api/src/Framework/FrameworkInterface.php \Drupal\realistic_dummy_content_api\Framework\FrameworkInterface::formatProperty()
Formats a property to add it to an entity.
In Drupal 7, this might be array(LANGUAGE_NONE => ...); in Drupal8 it is just the file id, or value.
Parameters
string $type: Can be 'file', 'value', ...
mixed $value: A file, or string...
array $options: Extra options such as the format.
Return value
mixed The file data formatted for placement in an entity.
File
- api/
src/ Framework/ FrameworkInterface.php, line 131
Class
- FrameworkInterface
- Defines and abstracts all functions which are used by our module.
Namespace
Drupal\realistic_dummy_content_api\FrameworkCode
public function formatProperty($type, $value, $options = array());