You are here

public function AmpViewsCarouselStyle::getSetting in Accelerated Mobile Pages (AMP) 8.3

Emulates formatter getSetting() method.

Added so AmpFormTrait will work in both Field Formatters and also in Views style plugins, for easier code re-use.

Parameters

string $setting: The setting to retrieve.

Return value

mixed The value of the setting.

1 call to AmpViewsCarouselStyle::getSetting()
AmpViewsCarouselStyle::buildOptionsForm in src/Plugin/views/style/AmpViewsCarouselStyle.php
Provide a form to edit options for this plugin.

File

src/Plugin/views/style/AmpViewsCarouselStyle.php, line 55

Class

AmpViewsCarouselStyle
Style plugin for the carousel view.

Namespace

Drupal\amp\Plugin\views\style

Code

public function getSetting($setting) {
  return $this->options[$setting];
}