Example #1
0
 /**
  * Prepare attributes
  *
  * @param array $attrs Field attributes to prepare
  *
  * @return array
  */
 protected function prepareAttributes(array $attrs)
 {
     $attrs = parent::prepareAttributes($attrs);
     $attrs['class'] = (empty($attrs['class']) ? '' : $attrs['class'] . ' ') . 'password-visible';
     return $attrs;
 }