Beispiel #1
0
 /**
  * Set common attributes
  *
  * @param array $attrs Field attributes to prepare
  *
  * @return array
  */
 protected function setCommonAttributes(array $attrs)
 {
     $result = parent::setCommonAttributes($attrs);
     if (isset($result['multiple'])) {
         unset($result['multiple']);
     }
     return $result;
 }
Beispiel #2
0
 /**
  * Set common attributes
  *
  * @param array $attrs Field attributes to prepare
  *
  * @return array
  */
 protected function setCommonAttributes(array $attrs)
 {
     return parent::setCommonAttributes($attrs) + array('data-header' => '0');
 }
Beispiel #3
0
 /**
  * Set common attributes
  *
  * @param array $attrs Field attributes to prepare
  *
  * @return array
  */
 protected function setCommonAttributes(array $attrs)
 {
     return parent::setCommonAttributes($attrs) + array('data-placeholder' => static::t('Enter keywords'), 'data-selected-text' => static::t('# selected'));
 }