function ImageField::GetExtensions in Realistic Dummy Content 8
Get acceptable file extensions which contain data for this attribute.
For example, title attributes can be replaced by data in txt files, whereas as picture and field_image attributes require png, jpg, gif.
Return value
An array of acceptable file extensions.
Overrides Attribute::GetExtensions
File
- api/
src/ attributes/ ImageField.php, line 20 - Define autoload class.
Class
- ImageField
- Field modifier for image fields.
Namespace
Drupal\realistic_dummy_content_api\attributesCode
function GetExtensions() {
return $this
->GetImageExtensions();
}