Skip to content
PHP Ecosystem
Explore

InlineInterface

API reference › HTML Contracts › Element › InlineInterface

interfaceUIAwesome\Html\Contracts\Element\InlineInterface
ExtendsContentInterface, UIAwesome\Html\Contracts\RenderableInterface
Sourcesrc/Element/InlineInterface.php
Implemented by 1 type

Defines a contract for renderable HTML elements that render as single-line elements.

In this library, “Inline” refers to elements rendered on the same line, not HTML’s standard inline-level content categories.

Combines rendering capability with the child content API inherited from ContentInterface.

See also: https://developer.mozilla.org/en-US/docs/Glossary/Inline-level_content.

MethodDescriptionDefined by
content() abstractAppends encoded content.ContentInterface
getContent() abstractReturns the content assigned to the element.ContentInterface
html() abstractAppends trusted raw HTML content without encoding or sanitizing it.ContentInterface
render() abstractRenders the object as an HTML string.UIAwesome\Html\Contracts\RenderableInterface