You are here

protected function PhotosImageSetCover::defineOptions in Album Photos 8.5

Same name and namespace in other branches
  1. 6.0.x src/Plugin/views/field/PhotosImageSetCover.php \Drupal\photos\Plugin\views\field\PhotosImageSetCover::defineOptions()

Information about options for all kinds of purposes will be held here.


'option_name' => array(
 - 'default' => default value,
 - 'contains' => (optional) array of items this contains, with its own
     defaults, etc. If contains is set, the default will be ignored and
     assumed to be array().
 ),

Return value

array Returns the options of this handler/plugin.

Overrides LinkBase::defineOptions

File

src/Plugin/views/field/PhotosImageSetCover.php, line 51

Class

PhotosImageSetCover
Field handler to present a link to set image as album cover.

Namespace

Drupal\photos\Plugin\views\field

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['output_url_as_text'] = [
    'default' => FALSE,
  ];
  $options['absolute'] = [
    'default' => FALSE,
  ];
  return $options;
}