You are here

public function ViewsNaturalSortService::createIndexRecord in Views Natural Sort 8.2

1 call to ViewsNaturalSortService::createIndexRecord()
ViewsNaturalSortService::storeIndexRecordsFromEntity in src/ViewsNaturalSortService.php

File

src/ViewsNaturalSortService.php, line 257

Class

ViewsNaturalSortService
Service that manages Views Natural Sort records.

Namespace

Drupal\views_natural_sort

Code

public function createIndexRecord(array $values = []) {
  $record = new IndexRecord($this->database, $values);
  $transformations = $this
    ->getTransformations($record);
  $record
    ->setTransformations($transformations);
  return $record;
}