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
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
$sources
private
array<int, IShareReviewSource>>
$sources
= []
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
getSources()
public
getSources() : array<int, IShareReviewSource>>
Tags
Return values
array<int, IShareReviewSource>>isPropagationStopped()
{@inheritDoc}
public
isPropagationStopped() : bool
Tags
Attributes
- #[Override]
Return values
boolregisterSource()
public
registerSource(IShareReviewSource> $source) : void
Parameters
- $source : IShareReviewSource>
Tags
stopPropagation()
Stops the propagation of the event to further event listeners
public
stopPropagation() : void