Пример #1
0
 /**
  * {@inheritdoc}
  */
 public function operators()
 {
     $operators = parent::operators();
     $operators['=']['title'] = $this->t('contains');
     $operators['!=']['title'] = $this->t("doesn't contain");
     $operators = array_intersect_key($operators, array('=' => 1, '!=' => 1));
     return $operators;
 }
Пример #2
0
 /**
  * {@inheritdoc}
  */
 public function adminSummary()
 {
     if (!is_array($this->value)) {
         $this->value = $this->value ? array($this->value) : array();
     }
     $value = $this->value;
     $this->value = empty($value) ? '' : $this->idsToString($value);
     $ret = parent::adminSummary();
     $this->value = $value;
     return $ret;
 }