public addHidden ( $name, $default = NULL ) : |
||
return |
public function addHidden($name, $default = NULL)
{
return $this[$name] = (new Controls\HiddenField())->setDefaultValue($default);
}
public function addIdentifiers() { $components = []; foreach ($this->metadata->getIdentifierFieldNames() as $name) { if (!isset($this->containerPrototype[$name])) { $components[$name] = $this->containerPrototype->addHidden($name); } } return $components; }