SilverStripe\CMS\Model\SiteTree::getStatusFlags
A flag provides the user with additional data about the current page status, for example a "removed from draft" status. Each page can have more than one status flag. Returns a map of a unique key to a (localized) title for the flag. The unique key can be reused as a CSS class. Use the 'updateStatusFlags' extension point to customize the flags.
Example (simple): "deletedonlive" => "Deleted" Example (with optional title attribute): "deletedonlive" => ['text' => "Deleted", 'title' => 'This page has been deleted']
Signature
public function getStatusFlags([boolean
$cached = true] )
Parameters
$cached
— boolean- Whether to serve the fields from cache; false regenerate them
Returns
- array