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
see
LinkService

types

Return values
string

getReason()

public getReason() : string
Return values
string
public isBrokenLink() : bool
Return values
bool

isPropagationStopped()

public isPropagationStopped() : bool
Return values
bool
public markAsBrokenLink([string $reason = '' ]) : void
Parameters
$reason : string = ''
public markAsCheckedLink() : void

        
On this page

Search results