Vendor/langcode-conv/zendframework/zend-filter/src/Whitelist.php
public function setList($list = [])
    {
        if (!is_array($list)) {
            $list = ArrayUtils::iteratorToArray($list);
        }

        $this->list = $list;
    }
public function setList($list = [])
    {
        if (!is_array($list)) {
            $list = ArrayUtils::iteratorToArray($list);
        }

        $this->list = $list;
    }
public function setList ( $ list = [ ] ) { if ( ! is_array ( $ list ) ) { $ list = ArrayUtils :: iteratorToArray ( $ list ) ; } $ this -> list = $ list ; }
Set the list of items to white-list.

@param array|Traversable $list
Set the list of items to white - list .