Skip to content

Commit

Permalink
add getLanguageCodes to VersionInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
tischsoic committed Apr 8, 2024
1 parent 9bfb7c6 commit 195c63b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/contracts/Repository/Values/Content/VersionInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ abstract public function getInitialLanguage(): Language;
*/
abstract public function getLanguages(): iterable;

/**
* @return iterable<string>
*/
abstract public function getLanguageCodes(): iterable;

/**
* Returns true if version is a draft.
*
Expand Down
5 changes: 5 additions & 0 deletions src/lib/Repository/Values/Content/VersionInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ public function getLanguages(): iterable
return $this->languages;
}

public function getLanguageCodes(): iterable
{
return $this->languageCodes;
}

/**
* {@inheritdoc}
*/
Expand Down

0 comments on commit 195c63b

Please sign in to comment.