Set a filter on the current locale in SourceLocale alias field. This field is added by
FluentExtension::augmentSQL, and this list is used in the history viewer via a GraphQL query.

@param DataList &$list
167412
public function updateList(DataList &$list)
    {
        /** @var DataObject $singleton */
        $singleton = Injector::inst()->get($list->dataClass());
        $locale = $list->dataQuery()->getQueryParam('Fluent.Locale') ?: FluentState::singleton()->getLocale();
        if (!$singleton->hasExtension(FluentExtension::class)
            || !$singleton->hasField('SourceLocale')
            || !$locale
        ) {
            return;
        }

        $locale = FluentState::singleton()->getLocale();

        $query = $list->dataQuery();
        $query->having(['"SourceLocale" = ?' => $locale]);

        $list = $list->setDataQuery($query);
    }
112644
protected function configureListFields(ListMapper $list)
    {
        $list->addIdentifier(
            'id',
            'integer',
            array(
                'route' => array(
                    'name' => 'edit',
                ),
            )
        );
        $list->add('alias');
        $list->add('originUrl', 'text', array('mapped' => false, 'template' => $this->getUriTemplate(), 'originUrl' => true));
        $list->add('url', 'text', array('mapped' => false, 'template' => $this->getUriTemplate(), 'originUrl' => false));
    }
409742
public function collateDataFields(&$list, $saveableOnly = false)
    {
        $list[$this->ToggleName] = $this->getToggleField();
        
        parent::collateDataFields($list, $saveableOnly);
    }
282573
public function filterList(ItemList $list)
    {
        if ($this->attributeKey !== null) {
            $type = $this->attributeKey->getAttributeType();
            $cnt = $type->getController();
            $cnt->setRequestArray($this->data);
            $cnt->setAttributeKey($this->attributeKey);
            $cnt->searchForm($list);
        }
    }
857910
public void setInstancesList(java.util.Collection<String> instancesList) {
        if (instancesList == null) {
            this.instancesList = null;
            return;
        }

        this.instancesList = new com.amazonaws.internal.SdkInternalList<String>(instancesList);
    }
364794
public function setItems($list)
    {
        if (!is_array($list)) {
            $this->items = null;

            return;
        }

        $items = [];
        foreach ($list as $index => $element) {
            if ((!is_object($element) || !($element instanceof \ShopgateOrderItem)) && !is_array($element)) {
                unset($list[$index]);
                continue;
            }

            if ($element instanceof \ShopgateOrderItem) {
                $element = $element->toArray();
            }

            $item = $this->itemFactory->create();
            $item->loadArray($element);
            $items[$item->getItemNumber()] = $item;
        }

        $this->items = $items;
    }
98680
function setAlwaysAvailableLanguage( $languageLocale )
    {
        if ( $languageLocale )
        {
            $this->NameList->setAlwaysAvailableLanguage( $languageLocale );
            $this->DescriptionList->setAlwaysAvailableLanguage( $languageLocale );
            $this->DataTextI18nList->setAlwaysAvailableLanguage( $languageLocale );
        }
        else
        {
            $this->NameList->setAlwaysAvailableLanguage( false );
            $this->DescriptionList->setAlwaysAvailableLanguage( false );
            $this->DataTextI18nList->setAlwaysAvailableLanguage( false );
        }
    }
439516
public void setAZList(java.util.Collection<String> aZList) {
        if (aZList == null) {
            this.aZList = null;
            return;
        }

        this.aZList = new com.amazonaws.internal.SdkInternalList<String>(aZList);
    }
84797
void setLocale(Locale l) {

        if (l == null) {
            hnd_create_params = hnd_local_names = hnd_remarks = -1;
            locale_set        = false;

            return;
        }

        Locale oldLocale;

        synchronized (BundleHandler.class) {
            oldLocale = BundleHandler.getLocale();

            BundleHandler.setLocale(l);

            hnd_create_params =
                BundleHandler.getBundleHandle("data-type-create-parameters",
                                              null);
            hnd_local_names = BundleHandler.getBundleHandle("data-type-names",
                    null);
            hnd_remarks = BundleHandler.getBundleHandle("data-type-remarks",
                    null);

            BundleHandler.setLocale(oldLocale);

            locale_set = true;
        }
    }
863167
void setLocale(Locale locale)
   {
      m_resourceNames = LocaleData.getStringArray(locale, LocaleData.RESOURCE_NAMES);

      String name;
      m_resourceNumbers.clear();

      for (int loop = 0; loop < m_resourceNames.length; loop++)
      {
         name = m_resourceNames[loop];
         if (name != null)
         {
            m_resourceNumbers.put(name, Integer.valueOf(loop));
         }
      }
   }
132516
public Integer addWithAlias(String alias, V value) {
        synchronized (dataList) {
            dataList.add(value);
            return aliasIndexMap.put(alias, dataList.size() - 1);
        }
    }
933723
protected function getFilter(DataList $list)
    {
        if ($class = $this->getFilterClass()) {
            return Injector::inst()->create($class, $list, $this->getParams());
        }
        
        return DefaultFilter::create($list, $this->getParams());
    }
1062150
public function getManipulatedData(GridField $gridField, SS_List $dataList)
    {
        // If we are lazy loading an empty the list
        if ($this->isLazy($gridField)) {
            if ($dataList instanceof Filterable) {
                // If our original list can be filtered, filter out all results.
                $dataList = $dataList->byIDs([-1]);
            } else {
                // If not, create an empty list instead.
                $dataList = ArrayList::create([]);
            }
        }
        return $dataList;
    }
42831
public function setSettings($settingList = []) {
        if (!$settingList) {
            return;
        }

        if (isset($settingList['persistent'])) {
            $this->setPersistent($settingList['persistent']);
        }

        if (isset($settingList['charset'])) {
            $this->setCharset($settingList['charset']);
        }
    }
720913
public function getSortTable(DataList $list)
    {
        $field = $this->getSortField();

        if ($list instanceof ManyManyList) {
            $extra = $list->getExtraFields();
            $table = $list->getJoinTable();

            if ($extra && array_key_exists($field, $extra)) {
                return $table;
            }
        }

        $classes = ClassInfo::dataClassesFor($list->dataClass());

        foreach ($classes as $class) {
            if (singleton($class)->hasOwnTableDatabaseField($field)) {
                return $class;
            }
        }

        throw new Exception("Couldn't find the sort field '$field'");
    }
993253
function setBlockList($list)
    {
        if ($list instanceof \Traversable)
            $list = \Poirot\Std\cast($list)->toArray();

        if (! is_array($list) )
            throw new \InvalidArgumentException(sprintf(
                'List must instanceof Traversable or array; given (%s).'
                , \Poirot\Std\flatten($list)
            ));

        $this->blockList = $list;
        return $this;
    }
213092
public function setCharList($charList)
    {
        if (! strlen($charList)) {
            $charList = null;
        }

        $this->options['charlist'] = $charList;

        return $this;
    }