Nextcloud PHP API (master)

RegisterShareReviewSourceEvent extends Event
in package

Event dispatched by a share-review app to collect share sources from other apps. Listeners register the class name of their {@see IShareReviewSource} implementation; the share-review app resolves it from the dependency injection container.

Tags
since
34.0.2
Attributes
#[Dispatchable]
$since: '34.0.2'
#[Listenable]
$since: '34.0.2'

Table of Contents

Properties

$sources  : array<int, IShareReviewSource>>

Methods

__construct()  : mixed
Compatibility constructor
getSources()  : array<int, IShareReviewSource>>
isPropagationStopped()  : bool
{@inheritDoc}
registerSource()  : void
stopPropagation()  : void
Stops the propagation of the event to further event listeners

Properties

Methods

__construct()

Compatibility constructor

public __construct() : mixed

In Nextcloud 17.0.0 this event class used a now deprecated/removed Symfony base class that had a constructor (with default arguments). To lower the risk of a breaking change (PHP won't allow parent constructor calls if there is none), this empty constructor's only purpose is to hopefully not break existing sub- classes of this class.

Tags
since
18.0.0

getSources()

public getSources() : array<int, IShareReviewSource>>
Tags
since
34.0.2
Return values
array<int, IShareReviewSource>>

isPropagationStopped()

{@inheritDoc}

public isPropagationStopped() : bool
Tags
since
22.0.0
see
StoppableEventInterface
Attributes
#[Override]
Return values
bool

registerSource()

public registerSource(IShareReviewSource> $source) : void
Parameters
$source : IShareReviewSource>
Tags
since
34.0.2

stopPropagation()

Stops the propagation of the event to further event listeners

public stopPropagation() : void
Tags
since
22.0.0
On this page

Search results