public function RealisticDummyContentTextProperty::implementValueFromFile in Realistic Dummy Content 3.x
Same name and namespace in other branches
- 8.2 api/src/includes/RealisticDummyContentTextProperty.php \Drupal\realistic_dummy_content_api\includes\RealisticDummyContentTextProperty::implementValueFromFile()
- 7.2 api/src/includes/RealisticDummyContentTextProperty.php \Drupal\realistic_dummy_content_api\includes\RealisticDummyContentTextProperty::implementValueFromFile()
Given a RealisticDummyContentFileGroup object, get a structured property.
This function is not meant to called directly; rather, call ValueFromFile(). This function must be overriden by subclasses.
Parameters
object $file: An object of type RealisticDummyContentFileGroup.
Return value
array Returns structured data to be added to the entity object, or an empty array if such data can't be created.
Throws
\Exception.
Overrides RealisticDummyContentAttribute::implementValueFromFile
File
- api/
src/ includes/ RealisticDummyContentTextProperty.php, line 13
Class
- RealisticDummyContentTextProperty
- Represents a text property like a node title or user name.
Namespace
Drupal\realistic_dummy_content_api\includesCode
public function implementValueFromFile($file) : array {
return $file
->Value();
}