public function getFieldDefinition($arrOverrides = array())
    {
        $arrFieldDef = $this->setBaseEval($this->getBaseDefinition(), $arrOverrides);

        if ($this->isAllowedValue('trailingSlash')) {
            $trailingSlash = $this->getOverrideValue('trailingSlash', $arrOverrides);
            if ($trailingSlash != 2) {
                $arrFieldDef['eval']['trailingSlash'] = (bool) $arrOverrides['trailingSlash'];
            }
        }

        // Panel conditions.
        if ($this->isAllowedValue('filterable')) {
            $arrFieldDef['filter'] = (bool) $this->getOverrideValue('filterable', $arrOverrides);
        }
        if ($this->isAllowedValue('searchable')) {
            $arrFieldDef['search'] = (bool) $this->getOverrideValue('searchable', $arrOverrides);
        }

        return $arrFieldDef;
    }
public function getFieldDefinition($arrOverrides = array())
    {
        $arrFieldDef = $this->setBaseEval($this->getBaseDefinition(), $arrOverrides);

        if ($this->isAllowedValue('trailingSlash')) {
            $trailingSlash = $this->getOverrideValue('trailingSlash', $arrOverrides);
            if ($trailingSlash != 2) {
                $arrFieldDef['eval']['trailingSlash'] = (bool) $arrOverrides['trailingSlash'];
            }
        }

        // Panel conditions.
        if ($this->isAllowedValue('filterable')) {
            $arrFieldDef['filter'] = (bool) $this->getOverrideValue('filterable', $arrOverrides);
        }
        if ($this->isAllowedValue('searchable')) {
            $arrFieldDef['search'] = (bool) $this->getOverrideValue('searchable', $arrOverrides);
        }

        return $arrFieldDef;
    }
{@inheritdoc}