BrokenLinkAnalysisEvent implements StoppableEventInterface
FinalYes
Event that is fired to validate if a link is valid or not.
Table of Contents
Interfaces
- StoppableEventInterface
Methods
- __construct() : mixed
- getLinkData() : array<string|int, mixed>
- Returns resolved LinkService data, depending on the type
- getLinkType() : string
- Returns the link type as string
- getReason() : string
- isBrokenLink() : bool
- isPropagationStopped() : bool
- markAsBrokenLink() : void
- markAsCheckedLink() : void
Methods
__construct()
public
__construct(string $linkType, array<string|int, mixed> $linkData) : mixed
Parameters
- $linkType : string
- $linkData : array<string|int, mixed>
getLinkData()
Returns resolved LinkService data, depending on the type
public
getLinkData() : array<string|int, mixed>
Return values
array<string|int, mixed>getLinkType()
Returns the link type as string
public
getLinkType() : string
Tags
Return values
stringgetReason()
public
getReason() : string
Return values
stringisBrokenLink()
public
isBrokenLink() : bool
Return values
boolisPropagationStopped()
public
isPropagationStopped() : bool
Return values
boolmarkAsBrokenLink()
public
markAsBrokenLink([string $reason = '' ]) : void
Parameters
- $reason : string = ''
markAsCheckedLink()
public
markAsCheckedLink() : void