# getAt

abstract fun getAt(id: String): Plugin(source)

Returns a plugin with the specified id if this plugin has been used in the project. You can use the Groovy `[]` operator to call this method from a build script.

#### Parameters

id

The id of the plugin

#### Throws

org.gradle.api.plugins.UnknownPluginException

When there is no plugin with the given id.

abstract fun <T : Plugin?> getAt(type: Class<T>): T(source)

Returns a plugin with the specified type if this plugin has been used in the project. You can use the Groovy `[]` operator to call this method from a build script.

#### Parameters

type

The type of the plugin

#### Throws

org.gradle.api.plugins.UnknownPluginException

When there is no plugin with the given type.