You are here

public function ServerFactory::getServerById in Lightweight Directory Access Protocol (LDAP) 8.3

Fetch server by ID.

Parameters

string $sid: Server id.

Return value

\Drupal\Core\Entity\EntityInterface|\Drupal\ldap_servers\Entity\Server Server entity.

1 call to ServerFactory::getServerById()
ServerFactory::alterLdapAttributes in ldap_servers/src/ServerFactory.php
Alter the LDAP attributes.

File

ldap_servers/src/ServerFactory.php, line 53

Class

ServerFactory
Helper class to working with the Server classes.

Namespace

Drupal\ldap_servers

Code

public function getServerById($sid) {
  return $this->entityManager
    ->load($sid);
}