Get the name of the ref for the component. Returns: The ref name.
(self)
| 1022 | return code |
| 1023 | |
| 1024 | def get_ref(self) -> str | None: |
| 1025 | """Get the name of the ref for the component. |
| 1026 | |
| 1027 | Returns: |
| 1028 | The ref name. |
| 1029 | """ |
| 1030 | # do not create a ref if the id is dynamic or unspecified |
| 1031 | if self.id is None or isinstance(self.id, BaseVar): |
| 1032 | return None |
| 1033 | return format.format_ref(self.id) |
| 1034 | |
| 1035 | def get_refs(self) -> Set[str]: |
| 1036 | """Get the refs for the children of the component. |
no outgoing calls
no test coverage detected