CodeExampleHeaderRenderer
final readonly class \
Renders the header above a styleguide code example, holding the button to copy the code to the clipboard.
Internal
Table of Contents
Methods
- __construct() : mixed
- render() : string
Methods
__construct()
public
__construct(PageRenderer $pageRenderer, IconFactory $iconFactory) : mixed
Parameters
- $pageRenderer : PageRenderer
- $iconFactory : IconFactory
render()
public
render(string $code) : string
Parameters
- $code : string