You are here

public function CarouselItemStorage::getItems in bootstrap simple carousel 8

Returns all carousel items.

File

src/CarouselItemStorage.php, line 16

Class

CarouselItemStorage
Carousel Item storage.

Namespace

Drupal\bootstrap_simple_carousel

Code

public function getItems() {
  $query = $this->database
    ->select($this
    ->getBaseTable(), 'u');
  $query
    ->fields('u');
  $query
    ->orderBy('weight', 'DESC');
  return $query
    ->execute()
    ->fetchAll();
}