gradle
8.6

# whenPluginAdded

abstract fun whenPluginAdded(action: Action<out Any>): Action<out Any>(source)

Adds an `Action` to be executed when a plugin is added to this collection.

#### Return

the supplied action

#### Parameters

action

The action to be executed

abstract fun whenPluginAdded(closure: Closure)(source)

Adds a closure to be called when a plugin is added to this collection. The plugin is passed to the closure as the parameter.

#### Parameters

closure

The closure to be called