You are here

public function PasswordPolicy::messages in Password Policy 7.2

Collects messages generated from all plugins.

Return value

string[] Messages.

File

includes/PasswordPolicy.inc, line 100
Contains PasswordPolicy.

Class

PasswordPolicy
Defines a class used for managing Password Policies.

Code

public function messages() {
  $items = array();
  foreach ($this
    ->activeConstraints() as $constraint) {
    $items = array_merge($items, $constraint
      ->messages());
  }
  return $items;
}