Skip to content

Kirby 5.1.2

$translations->remove()

Removes an object

$translations->remove(string|Kirby\Cms\Translation $key): Kirby\Cms\Translations

Parameters

Name Type Default Description
$keyrequired stringorKirby\Cms\Translation no default value the name of the key

Return type

Kirby\Cms\Translations

This method does not modify the existing $translations object but returns a new object with the changes applied. Learn more →

Parent class

Kirby\Cms\Translations inherited from Kirby\Cms\Collection