abstract protected function RealisticDummyContentAttribute::implementValueFromFile in Realistic Dummy Content 3.x
Same name and namespace in other branches
- 8.2 api/src/includes/RealisticDummyContentAttribute.php \Drupal\realistic_dummy_content_api\includes\RealisticDummyContentAttribute::implementValueFromFile()
- 7.2 api/src/includes/RealisticDummyContentAttribute.php \Drupal\realistic_dummy_content_api\includes\RealisticDummyContentAttribute::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.
1 call to RealisticDummyContentAttribute::implementValueFromFile()
- RealisticDummyContentAttribute::valueFromFile in api/
src/ includes/ RealisticDummyContentAttribute.php - Given a RealisticDummyContentFileGroup object, get structured property.
5 methods override RealisticDummyContentAttribute::implementValueFromFile()
- RealisticDummyContentImageField::implementValueFromFile in api/
src/ includes/ RealisticDummyContentImageField.php - Given a RealisticDummyContentFileGroup object, get a structured property.
- RealisticDummyContentTermReferenceField::implementValueFromFile in api/
src/ includes/ RealisticDummyContentTermReferenceField.php - Given a RealisticDummyContentFileGroup object, get a structured property.
- RealisticDummyContentTextProperty::implementValueFromFile in api/
src/ includes/ RealisticDummyContentTextProperty.php - Given a RealisticDummyContentFileGroup object, get a structured property.
- RealisticDummyContentTextWithSummaryField::implementValueFromFile in api/
src/ includes/ RealisticDummyContentTextWithSummaryField.php - Given a RealisticDummyContentFileGroup object, get a structured property.
- RealisticDummyContentValueField::implementValueFromFile in api/
src/ includes/ RealisticDummyContentValueField.php - Given a RealisticDummyContentFileGroup object, get a structured property.
File
- api/
src/ includes/ RealisticDummyContentAttribute.php, line 234
Class
- RealisticDummyContentAttribute
- Represents either a field or a property for an entity.
Namespace
Drupal\realistic_dummy_content_api\includesCode
protected abstract function implementValueFromFile($file) : array;