trait PreviewToggleTrait (View source)

Provides a trait that provides a toggle for the content preview.

Methods

array
buildContentPreviewToggle()

Builds the content preview toggle input.

currentUser()

Gets the current user.

Details

protected array buildContentPreviewToggle()

Builds the content preview toggle input.

Return Value

array

The render array for the content preview toggle.

abstract protected AccountInterface currentUser()

Gets the current user.

Return Value

AccountInterface

The current user.