public function indexFields()
    {
        $fields = [];
        foreach ($this->indexes as $index) {
            $fields = array_merge($fields, $index->fields());
        }

        $result = [];
        foreach (array_unique($fields) as $field) {
            $result[] = $this->field($field);
        }

        return $result;
    }
public function indexFields()
    {
        $fields = [];
        foreach ($this->indexes as $index) {
            $fields = array_merge($fields, $index->fields());
        }

        $result = [];
        foreach (array_unique($fields) as $field) {
            $result[] = $this->field($field);
        }

        return $result;
    }
public function indexFields ( ) { $ fields = [ ] ; foreach ( $ this -> indexes as $ index ) { $ fields = array_merge ( $ fields , $ index -> fields ( ) ) ; } $ result = [ ] ; foreach ( array_unique ( $ fields ) as $ field ) { $ result [ ] = $ this -> field ( $ field ) ; } return $ result ; }
Returns array of fields from indexes

@return FieldInterface[]
Returns array of fields from indexes