public function Groups::loadAll in SimpleAds 8
1 call to Groups::loadAll()
- Groups::loadAsOptions in src/
Groups.php
File
- src/
Groups.php, line 101
Class
- Groups
- Groups utility class.
Namespace
Drupal\simpleadsCode
public function loadAll() {
$items = [];
$result = db_select('simpleads_groups', 's')
->fields('s')
->orderBy('s.changed_at', 'DESC')
->execute();
foreach ($result as $row) {
$items[] = $this
->setId($row->id)
->load();
}
return $items;
}