/** * {@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; }
/** * {@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; }