public function Attachment::attachmentPositions

2 calls to Attachment::attachmentPositions()
Attachment::buildOptionsForm in drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/Attachment.php
Provide the default form for setting options.
Attachment::optionsSummary in drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/Attachment.php
Provide the summary for attachment options in the views UI.

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/Attachment.php, line 57
Definition of Drupal\views\Plugin\views\display\Attachment.

Class

Attachment
The plugin that handles an attachment display.

Namespace

Drupal\views\Plugin\views\display

Code

public function attachmentPositions($position = NULL) {
  $positions = array(
    'before' => t('Before'),
    'after' => t('After'),
    'both' => t('Both'),
  );
  if ($position) {
    return $positions[$position];
  }
  return $positions;
}