function password_policy_load in Password Policy 8.3
Menu argument loader. Returns a password policy entity.
Parameters
string $id: ID of the password policy entity.
Return value
\Drupal\Core\Entity\EntityInterface Returns a password policy object.
File
- ./
password_policy.module, line 363 - Module file for the Password Policy module.
Code
function password_policy_load($id) {
return PasswordPolicy::load($id);
}