/**
  * setCommonAttributes
  *
  * @param array $attrs Field attributes to prepare
  *
  * @return array
  */
 protected function setCommonAttributes(array $attrs)
 {
     $result = parent::setCommonAttributes($attrs);
     $result['value'] = strlen($result['value']) ? str_repeat(chr(static::PLACEHOLDER_SIGN), static::PLACEHOLDER_LENGTH) : '';
     return $result;
 }
Beispiel #2
0
 /**
  * setCommonAttributes
  *
  * @param array $attrs Field attributes to prepare
  *
  * @return void
  */
 protected function setCommonAttributes(array $attrs)
 {
     $result = parent::setCommonAttributes($attrs);
     $result['value'] = '';
     return $result;
 }