API Machine-friendly name for CMS states navigator (stages).

Used programmatically by the side-by-side state switcher.
This commit is contained in:
Mateusz Uzdowski 2012-11-29 17:41:01 +13:00 committed by Ingo Schommer
parent aaae8c97e6
commit 47f41d80c6
1 changed files with 7 additions and 0 deletions

View File

@ -126,6 +126,13 @@ class SilverStripeNavigatorItem extends ViewableData {
*/
public function getTitle() {}
/**
* Machine-friendly name.
*/
public function getName() {
return substr(get_class($this), strpos(get_class($this), '_')+1);
}
/**
* Optional link to a specific view of this record.
* Not all items are simple links, please use {@link getHTML()}