$translations->remove()
Removes an object
$translations->remove(string|Translation $key): Translations
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $keyrequired | stringorKirby\Cms\Translation |
no default value | Key or object to remove |
Return type
This method modifies the existing $translations object it is applied to and returns it again.
Parent class
Kirby\Cms\Translations
inherited from Kirby\Cms\Collection