You are here

public static function PhotosImage::sizeOptions in Album Photos 8.4

Image size select options.

2 calls to PhotosImage::sizeOptions()
PhotosAdminSettingsForm::buildForm in src/Form/PhotosAdminSettingsForm.php
Form constructor.
photos_form_node_form_alter in ./photos.module
Implements hook_form_BASE_FORM_ID_alter().

File

src/PhotosImage.php, line 457

Class

PhotosImage
Create images object.

Namespace

Drupal\photos

Code

public static function sizeOptions($none = 0) {
  if ($none) {
    $v[] = 'Do not show';
  }
  $info = PhotosImage::sizeInfo();
  $v = $info['size'];
  return $v;
}