Skip to main content

HtmlAttributes

Helper for creating HtmlAttributesSet objects


  • Full name: \TwbsHelper\View\Helper\HtmlAttributes
  • Parent class: AbstractHelper

Methods

__invoke

Returns a new HtmlAttributesSet object, optionally initializing it with the provided value.

public __invoke(iterable<string,scalar|array|null> $attributes = []): \TwbsHelper\View\HtmlAttributesSet

Parameters:

ParameterTypeDescription
$attributesiterable<string,scalar|array|null>