@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
65 lines (34 loc) • 1.3 kB
Markdown
---
lang: en
title: 'API docs: core.lifecycleobserverregistry.getobservergroup'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/core
permalink: /doc/en/lb4/apidocs.core.lifecycleobserverregistry.getobservergroup.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/core](./core.md) > [LifeCycleObserverRegistry](./core.lifecycleobserverregistry.md) > [getObserverGroup](./core.lifecycleobserverregistry.getobservergroup.md)
## LifeCycleObserverRegistry.getObserverGroup() method
Get the group for a given life cycle observer binding
**Signature:**
```typescript
protected getObserverGroup(binding: Readonly<Binding<LifeCycleObserver>>): string;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td markdown="1">
binding
</td><td markdown="1">
Readonly<[Binding](./context.binding.md)<!-- --><[LifeCycleObserver](./core.lifecycleobserver.md)<!-- -->>>
</td><td markdown="1">
Life cycle observer binding
</td></tr>
</tbody></table>
**Returns:**
string