You are here

function Attribute::GetImageExtensions in Realistic Dummy Content 8

Return acceptable image file extensions.

Return value

An array of extension for image files.

3 calls to Attribute::GetImageExtensions()
Attribute::ImageSave in api/src/attributes/Attribute.php
Return an image file object if possible.
ImageField::GetExtensions in api/src/attributes/ImageField.php
Get acceptable file extensions which contain data for this attribute.
UserPicture::GetExtensions in api/src/attributes/UserPicture.php
Get acceptable file extensions which contain data for this attribute.

File

api/src/attributes/Attribute.php, line 276
Define autoload class.

Class

Attribute
Represents either a field or a property for an entity.

Namespace

Drupal\realistic_dummy_content_api\attributes

Code

function GetImageExtensions() {
  return array(
    'gif',
    'png',
    'jpg',
  );
}