mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
API Machine-friendly name for CMS states navigator (stages).
Used programmatically by the side-by-side state switcher.
This commit is contained in:
parent
aaae8c97e6
commit
47f41d80c6
@ -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()}
|
||||
|
Loading…
Reference in New Issue
Block a user