Translations::merge_originals_with( object $other )

In this article

Parameters

$otherobjectrequired

Source

public function merge_originals_with( &$other ) {
	foreach ( $other->entries as $entry ) {
		if ( ! isset( $this->entries[ $entry->key() ] ) ) {
			$this->entries[ $entry->key() ] = $entry;
		} else {
			$this->entries[ $entry->key() ]->merge_with( $entry );
		}
	}
}

User Contributed Notes

You must log in before being able to contribute a note or feedback.