blob: 74d7f523a8d5cd51e0b72b3d54ad24c8b0016d63 [file] [edit]
---
title: 'fragments'
---
A collection of configuration fragments available in the current rule implementation context. Access a specific fragment by its field name. For example, `ctx.fragments.java`
Only configuration fragments which are declared in the rule definition may be accessed in this collection.
See the [configuration fragment reference](../fragments) for a list of available fragments and the [rules documentation](https://bazel.build/versions/9.3.0/extending/rules#configuration_fragments) for how to use them.