Skip to content

Kirby 5.0.4

$languagesDropdown->hasDiff()

Returns if any translation other than the current one has unsaved changes (the current language has to be handled in k-languages-dropdown as its state can change dynamically without another backend request)

$languagesDropdown->hasDiff() has been marked as unstable. It might be changed in a future Kirby major or minor release without being considered a breaking change. Use with caution.

$languagesDropdown->hasDiff(): bool

Return type

bool

This method modifies the existing $languagesdropdown object it is applied to and returns it again.

Parent class

Kirby\Panel\Ui\Buttons\LanguagesDropdown