You are here

public function SubscriptionOrders::settingsSummary in Commerce Recurring Framework 8

Returns a short summary for the current formatter settings.

If an empty result is returned, a UI can still be provided to display a settings form in case the formatter has configurable settings.

Return value

string[] A short summary of the formatter settings.

Overrides FormatterBase::settingsSummary

File

src/Plugin/Field/FieldFormatter/SubscriptionOrders.php, line 78

Class

SubscriptionOrders
Plugin implementation of the 'subscription_orders' formatter.

Namespace

Drupal\commerce_recurring\Plugin\Field\FieldFormatter

Code

public function settingsSummary() {

  /** @var \Drupal\views\Entity\View $view */
  $view = $this->entityTypeManager
    ->getStorage('view')
    ->load($this
    ->getSetting('view'));
  return [
    $this
      ->t('Using view %view.', [
      '%view' => $view
        ->label(),
    ]),
  ];
}