You are here

protected function PriceTableDefaultFormatter::getOrientationOptionsList in Commerce Price Table 8

Return list with available orientation options.

Return value

array

2 calls to PriceTableDefaultFormatter::getOrientationOptionsList()
PriceTableDefaultFormatter::getOrientationLabel in src/Plugin/Field/FieldFormatter/PriceTableDefaultFormatter.php
Return orientation mode label.
PriceTableDefaultFormatter::settingsForm in src/Plugin/Field/FieldFormatter/PriceTableDefaultFormatter.php
Returns a form to configure settings for the formatter.

File

src/Plugin/Field/FieldFormatter/PriceTableDefaultFormatter.php, line 198

Class

PriceTableDefaultFormatter
Plugin implementation of the 'commerce_price_table' formatter.

Namespace

Drupal\commerce_price_table\Plugin\Field\FieldFormatter

Code

protected function getOrientationOptionsList() {
  return [
    PriceTableDefaultFormatter::HORIZONTAL_MODE => $this
      ->t('Horizontal'),
    PriceTableDefaultFormatter::VERTICAL_MODE => $this
      ->t('Vertical'),
  ];
}