public function RealisticDummyContentAttribute::getImageExtensions in Realistic Dummy Content 8.2
Same name and namespace in other branches
- 7.2 api/src/includes/RealisticDummyContentAttribute.php \Drupal\realistic_dummy_content_api\includes\RealisticDummyContentAttribute::getImageExtensions()
- 3.x api/src/includes/RealisticDummyContentAttribute.php \Drupal\realistic_dummy_content_api\includes\RealisticDummyContentAttribute::getImageExtensions()
Return acceptable image file extensions.
Return value
array An array of extension for image files.
3 calls to RealisticDummyContentAttribute::getImageExtensions()
- RealisticDummyContentAttribute::imageSave in api/
src/ includes/ RealisticDummyContentAttribute.php - Return an image file object if possible.
- RealisticDummyContentImageField::getExtensions in api/
src/ includes/ RealisticDummyContentImageField.php - Get acceptable file extensions which contain data for this attribute.
- RealisticDummyContentUserPicture::getExtensions in api/
src/ includes/ RealisticDummyContentUserPicture.php - Get acceptable file extensions which contain data for this attribute.
File
- api/
src/ includes/ RealisticDummyContentAttribute.php, line 261
Class
- RealisticDummyContentAttribute
- Represents either a field or a property for an entity.
Namespace
Drupal\realistic_dummy_content_api\includesCode
public function getImageExtensions() {
return array(
'gif',
'png',
'jpg',
);
}