source/Core/Form/FormFieldsCleaner.php
public function filterByUpdatableFields(array $listToClean)
    {
        $allowedFields = $this->updatableFields->getUpdatableFields();

        $cleanedList = $listToClean;
        if ($allowedFields->count() > 0) {
            $cleanedList = $this->filterFieldsByWhiteList($allowedFields, $listToClean);
        }

        return $cleanedList;
    }
public function filterByUpdatableFields(array $listToClean)
    {
        $allowedFields = $this->updatableFields->getUpdatableFields();

        $cleanedList = $listToClean;
        if ($allowedFields->count() > 0) {
            $cleanedList = $this->filterFieldsByWhiteList($allowedFields, $listToClean);
        }

        return $cleanedList;
    }
public function filterByUpdatableFields ( array $ listToClean ) { $ allowedFields = $ this -> updatableFields -> getUpdatableFields ( ) ; $ cleanedList = $ listToClean ; if ( $ allowedFields -> count ( ) > 0 ) { $ cleanedList = $ this -> filterFieldsByWhiteList ( $ allowedFields , $ listToClean ) ; } return $ cleanedList ; }
Return only those items which exist in both lists.

@param array $listToClean All fields.

@return array
Return only those items which exist in both lists .