for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Yiisoft\Form\Field\Base;
abstract class InputField extends AbstractField
{
/**
* Identifies the element (or elements) that describes the object.
*
* @link https://w3c.github.io/aria/#aria-describedby
*/
public function ariaDescribedBy(string $value): static
$new = clone $this;
$new->inputTagAttributes['aria-describedby'] = $value;
return $new;
}
* Defines a string value that labels the current element.
* @link https://w3c.github.io/aria/#aria-label
public function ariaLabel(string $value): static
$new->inputTagAttributes['aria-label'] = $value;
* Specifies the form element the tag input element belongs to. The value of this attribute must be the ID
* attribute of a form element in the same document.
* @link https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fae-form
public function form(string $value): static
$new->inputTagAttributes['form'] = $value;