public function ServerFactory::getAllServers in Lightweight Directory Access Protocol (LDAP) 8.3
Fetch all servers.
Return value
\Drupal\Core\Entity\EntityInterface[]|\Drupal\ldap_servers\Entity\Server[] An array of all servers.
File
- ldap_servers/
src/ ServerFactory.php, line 82
Class
- ServerFactory
- Helper class to working with the Server classes.
Namespace
Drupal\ldap_serversCode
public function getAllServers() {
$ids = $this->entityManager
->getQuery()
->execute();
return $this->entityManager
->loadMultiple($ids);
}