public function FrameworkInterface::formatProperty in Realistic Dummy Content 3.x
Same name and namespace in other branches
- 8.2 api/src/Framework/FrameworkInterface.php \Drupal\realistic_dummy_content_api\Framework\FrameworkInterface::formatProperty()
- 7.2 api/src/Framework/FrameworkInterface.php \Drupal\realistic_dummy_content_api\Framework\FrameworkInterface::formatProperty()
Formats a property to add it to an entity.
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
array The file data formatted for placement in an entity.
1 method overrides FrameworkInterface::formatProperty()
- Framework::formatProperty in api/
src/ Framework/ Framework.php - Formats a property to add it to an entity.
File
- api/
src/ Framework/ FrameworkInterface.php, line 124
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, array $options = []) : array;