abstract protected function Attribute::ValueFromFile_ in Realistic Dummy Content 8
Given a FileGroup object, get a structured property
This function is not meant to called directly; rather, call ValueFromFile(). This function must be overriden by subclasses.
Parameters
$file: An object of type FileGroup.
Return value
Returns structured data to be added to the entity object, or NULL if such data can't be creatd.
Throws
\Exception.
1 call to Attribute::ValueFromFile_()
- Attribute::ValueFromFile in api/
src/ attributes/ Attribute.php - Given a FileGroup object, get structured property if extentions ok.
6 methods override Attribute::ValueFromFile_()
- ImageField::ValueFromFile_ in api/
src/ attributes/ ImageField.php - Given a FileGroup object, get a structured property
- TermReferenceField::ValueFromFile_ in api/
src/ attributes/ TaxonomyTermReferenceField.php - Given a FileGroup object, get a structured property
- TextProperty::ValueFromFile_ in api/
src/ attributes/ TextProperty.php - Given a FileGroup object, get a structured property
- TextWithSummaryField::ValueFromFile_ in api/
src/ attributes/ TextWithSummaryField.php - Given a FileGroup object, get a structured property
- UserPicture::ValueFromFile_ in api/
src/ attributes/ UserPicture.php - Given a FileGroup object, get a structured property
File
- api/
src/ attributes/ Attribute.php, line 244 - Define autoload class.
Class
- Attribute
- Represents either a field or a property for an entity.
Namespace
Drupal\realistic_dummy_content_api\attributesCode
protected abstract function ValueFromFile_($file);