Contents

Tailor\Components\SectionComponent

Overview

SectionComponent displays a list of records.

Extends
Implements
  • Larajax\Contracts\ViewComponentInterface
  • October\Contracts\Twig\CallsAnyMethod
  • Stringable

Public Properties

There are no public properties in the class.

Show inherited public properties

Inherited Public Properties

Protected Properties

protected array $primaryRecordCache

protected array $otherSiteCache

protected array $otherSiteByIdentifierCache

protected bool $multisiteCache

Show inherited protected properties

Inherited Protected Properties


Public Methods

public componentDetails()

public componentDetails(): void

public defineProperties()

public defineProperties(): void

public getHandleOptions()

public getHandleOptions(): void

public getPrimaryRecord()

public getPrimaryRecord(): void

public getPrimaryRecordQuery()

public getPrimaryRecordQuery(): void

public getPrimaryRecordResult()

public getPrimaryRecordResult(): void

public init()

public init(): void

public makePrimaryAccessor()

public makePrimaryAccessor(): void

makePrimaryAccessor returns the PHP object variable for the Twig view layer.

public onRun()

public onRun(): void

public validateProperties()

public validateProperties($properties): void

validateProperties is used to replace older property definitions with new ones

Show inherited public methods

Inherited Public Methods

Protected Methods

protected findOtherSiteRecord()

protected findOtherSiteRecord($site, $params): void

findOtherSiteRecord locates the corresponding record on another site, checking the params to determine if a non-primary record is referenced

protected findOtherSiteRecordByIdentifier()

protected findOtherSiteRecordByIdentifier($columnName, $value): void

findOtherSiteRecordByIdentifier finds other site records for a specific record identified by its column value, with results cached per value

protected findPrimaryOtherSiteRecords()

protected findPrimaryOtherSiteRecords(): void

findPrimaryOtherSiteRecords is for multisite

protected getEntryPointIdentifierKey()

protected getEntryPointIdentifierKey(): string 

getEntryPointIdentifierKey returns the lookup column name

protected getEntryPointIdentifierParamName()

protected getEntryPointIdentifierParamName(): void

protected getEntryPointIdentifierValue()

protected getEntryPointIdentifierValue(): void

protected getEntryPointModel()

protected getEntryPointModel($query): void

protected getPreviewModel()

protected getPreviewModel($query): void

protected handleMultisiteParams()

protected handleMultisiteParams($site, $params): void

handleMultisiteParams is for multisite

protected isMultisiteEnabled()

protected isMultisiteEnabled(): void

Show inherited protected methods

Inherited Protected Methods