Skip to main content

Placeholder

Helper for rendering placeholders


Constants

ConstantVisibilityTypeValue
ANIMATION_GLOWpublic'glow'
ANIMATION_WAVEpublic'wave'

Properties

allowedAnimations

protected static $allowedAnimations
  • This property is static.

allowedOptions

protected static $allowedOptions
  • This property is static.

formButtonHelper

protected \TwbsHelper\Form\View\Helper\FormButton|null $formButtonHelper

Methods

__invoke

Generates a 'placeholder' element

public __invoke(int|iterable $optionsAndAttributes = [], bool $escape = true): string

Parameters:

ParameterTypeDescription
$optionsAndAttributesint|iterableoptions and Html attributes of the "<span>" element
$escapeboolTrue espace html content '$content'. Default True

Return Value:

The placeholder XHTML.

Throws:

  • InvalidArgumentException

renderPlaceholder

protected renderPlaceholder(mixed $optionsAndAttributes, bool $escape): string

Parameters:

ParameterTypeDescription
$optionsAndAttributesmixed
$escapebool

prepareAttributes

protected prepareAttributes(mixed $optionsAndAttributes): \TwbsHelper\View\HtmlAttributesSet

Parameters:

ParameterTypeDescription
$optionsAndAttributesmixed

prepareAttributesForColumn

protected prepareAttributesForColumn(\TwbsHelper\View\HtmlAttributesSet $optionsAndAttributes): mixed

Parameters:

ParameterTypeDescription
$optionsAndAttributes\TwbsHelper\View\HtmlAttributesSet

prepareAttributesForSize

protected prepareAttributesForSize(\TwbsHelper\View\HtmlAttributesSet $optionsAndAttributes): mixed

Parameters:

ParameterTypeDescription
$optionsAndAttributes\TwbsHelper\View\HtmlAttributesSet

renderButton

protected renderButton(mixed $optionsAndAttributes): string

Parameters:

ParameterTypeDescription
$optionsAndAttributesmixed

prepareAttributesForButton

protected prepareAttributesForButton(mixed $optionsAndAttributes): \TwbsHelper\View\HtmlAttributesSet

Parameters:

ParameterTypeDescription
$optionsAndAttributesmixed

getAnimationClass

protected getAnimationClass(string $animation): string

Parameters:

ParameterTypeDescription
$animationstring

getFormButtonHelper

public getFormButtonHelper(): \TwbsHelper\Form\View\Helper\FormButton