You are here

protected function DefaultDateRecurOccurrenceHandler::viewsDataCheckIfMoveColumnName in Recurring Dates Field 8

1 call to DefaultDateRecurOccurrenceHandler::viewsDataCheckIfMoveColumnName()
DefaultDateRecurOccurrenceHandler::viewsData in src/Plugin/DateRecurOccurrenceHandler/DefaultDateRecurOccurrenceHandler.php
Modify field views data to include occurrences.

File

src/Plugin/DateRecurOccurrenceHandler/DefaultDateRecurOccurrenceHandler.php, line 418

Class

DefaultDateRecurOccurrenceHandler
Provides the default occurrence handler.

Namespace

Drupal\date_recur\Plugin\DateRecurOccurrenceHandler

Code

protected function viewsDataCheckIfMoveColumnName($fieldName, $columnName, $columnData) {
  $fieldsToMove = [
    $fieldName,
    $fieldName . '_value',
    $fieldName . '_end_value',
  ];
  if (in_array($columnName, $fieldsToMove)) {
    return TRUE;
  }
  else {
    if (strpos($columnName, $fieldName . '_value') === 0) {
      return TRUE;
    }
  }
  return FALSE;
}