function UserPicture::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/ UserPicture.php, line 18 - Define autoload class.
Class
- UserPicture
- Represents the user picture
Namespace
Drupal\realistic_dummy_content_api\attributesCode
function GetExtensions() {
return $this
->GetImageExtensions();
}