You are here

public function RealisticDummyContentAttribute::getImageExtensions in Realistic Dummy Content 3.x

Same name and namespace in other branches
  1. 8.2 api/src/includes/RealisticDummyContentAttribute.php \Drupal\realistic_dummy_content_api\includes\RealisticDummyContentAttribute::getImageExtensions()
  2. 7.2 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.

2 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.

File

api/src/includes/RealisticDummyContentAttribute.php, line 266

Class

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

Namespace

Drupal\realistic_dummy_content_api\includes

Code

public function getImageExtensions() {
  return [
    'gif',
    'png',
    'jpg',
  ];
}