public function ContactEmailListBuilder::getEntityIds in Contact Emails 8
Loads entity IDs using a pager sorted by the entity id.
Return value
array An array of entity IDs.
Overrides EntityListBuilder::getEntityIds
File
- src/
ContactEmailListBuilder.php, line 141
Class
- ContactEmailListBuilder
- Defines the list builder for tax services.
Namespace
Drupal\contact_emailsCode
public function getEntityIds() {
$query = $this
->getStorage()
->getQuery();
// Maybe filter by the selected contact form.
if ($contact_form_id = \Drupal::routeMatch()
->getParameter('contact_form')) {
$query
->condition('contact_form', $contact_form_id);
}
// Order by the id.
$query
->sort($this->entityType
->getKey('id'));
// Only add the pager if a limit is specified.
if ($this->limit) {
$query
->pager($this->limit);
}
return $query
->execute();
}