You are here

public function EntityRow::summaryTitle in Views Parity Row 8

Returns the summary of the settings in the display.

Overrides EntityRow::summaryTitle

File

src/Plugin/views/row/EntityRow.php, line 125

Class

EntityRow
Generic entity row plugin to provide a common base for all entity types.

Namespace

Drupal\views_parity_row\Plugin\views\row

Code

public function summaryTitle() {
  $options = $this->entityDisplayRepository
    ->getViewModeOptions($this->entityTypeId);
  if (isset($this->options['views_parity_row_enable']) && $this->options['views_parity_row_enable'] === TRUE) {
    $string = $options[$this->options['view_mode']] . ' | ' . $this->options['views_parity_row']['frequency'] . ' | ' . $options[$this->options['views_parity_row']['view_mode']];
  }
  else {
    $string = $options[$this->options['view_mode']];
  }
  return $string;
}