Home / Function/ default.getHTMLAttributes() — astro Function Reference

default.getHTMLAttributes() — astro Function Reference

Architecture documentation for the default.getHTMLAttributes() function in test-image-service.js from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  14ab08f1_41f8_ea8c_cf7b_e1b3930c36b2["default.getHTMLAttributes()"]
  c7ffa4ce_010c_7ea5_dae5_5dbecd5ec1ca["test-image-service.js"]
  14ab08f1_41f8_ea8c_cf7b_e1b3930c36b2 -->|defined in| c7ffa4ce_010c_7ea5_dae5_5dbecd5ec1ca
  style 14ab08f1_41f8_ea8c_cf7b_e1b3930c36b2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/test/test-image-service.js lines 22–28

	getHTMLAttributes(options, serviceConfig) {
		options['data-service'] = 'my-custom-service';
		if (serviceConfig.service.config.foo) {
			options['data-service-config'] = serviceConfig.service.config.foo;
		}
		return baseService.getHTMLAttributes(options);
	},

Subdomains

Frequently Asked Questions

What does default.getHTMLAttributes() do?
default.getHTMLAttributes() is a function in the astro codebase, defined in packages/astro/test/test-image-service.js.
Where is default.getHTMLAttributes() defined?
default.getHTMLAttributes() is defined in packages/astro/test/test-image-service.js at line 22.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free