You are here

public static function PasswordPolicyItem::factory in Password Policy 7.2

Creates item.

Parameters

object $info: Ctools plugin object.

object $policy: Policy database object as returned by ctools_export_crud_load().

Return value

PasswordPolicyItem Item.

File

includes/PasswordPolicyItem.inc, line 111
Contains PasswordPolicyItem.

Class

PasswordPolicyItem
Class PasswordPolicyItem.

Code

public static function factory($info, &$policy) {
  $class = $info['class'];
  return new $class($info, $policy);
}