SilverStripe\CMS\Tests\Controllers\SilverStripeNavigatorTest_ProtectedTestItem

Synopsis

class SilverStripeNavigatorTest_ProtectedTestItem extends SilverStripeNavigatorItem implements TestOnly {
  • // Inherited members from SilverStripeNavigatorItem
  • protected  $record;
  • protected  $recordLink;
}

Hierarchy

Extends

Implements

  • SilverStripe\Dev\TestOnly

Members

protected

  • $record

Methods

public

Inherited from SilverStripe\CMS\Controllers\SilverStripeNavigatorItem

public

  • canView() — Filters items based on member permissions or other criteria, such as if a state is generally available for the current record.
  • getHTML()
  • getMessage()
  • getName() — Machine-friendly name.
  • getPriority()
  • getRecord()
  • getTitle()
  • isActive() — As items might convey different record states like a "stage" or "live" table, an item can be active (showing the record in this state).
  • isArchived() — Counts as "archived" if the current record is a different version from both live and draft.