layer

fun NamedDomainObjectContainer<LayerConfig>.layer(name: String, configure: LayerConfig.() -> Unit)(source)

Adds a named layer and configures it. Shorthand for use inside the layers { } block.