@param ElementStructureValue $value

@return $this;
426299
public function setValue(ElementStructureValue $value)
    {
        $this->values[$value->getLanguage()][$value->getName()] = $value;

        return $this;
    }
1044992
public function setValue($value=null) :self {
		// append by default or replace html
		$this->attributes['value'] = Format::htmlSafe($value);
		// return self
		return($this);
	}
549842
public function setValue(string $value = null) : Element
    {
        if ($value && !preg_match("@^(https?|ftp)://@", $value)) {
            $value = "http://$value";
        }
        return parent::setValue($value);
    }
538448
public function modifyValue($value) : self
    {
        $this->attributes['value'] = $this->getOldValue() ?: $value;

        if ($value instanceof \Closure) {
            $this->attributes['value'] = $value($this->attributes);
        }

        return $this;
    }
224515
protected function vaidateValue($value, $element)
    {
        if ($this->isEmpty($value)) {
            $element->setValue($this->getValue());
        }

        return true;
    }
1125977
public function set($css, $value = NULL) {

		$css = trim(strtolower($css));


		if (func_num_args() == 1) {

			$elements = explode(';', $css);

			foreach ($elements as $element) {

				if (!$element = trim($element)) {
					continue;
				}

				$element = explode(':', $element);

				if (!$element[0] = trim(@$element[0])) {
					continue;
				}

				$element[1] = trim(@$element[1]);

				$this->set($element[0], $element[1]);
			}

			return;
		}

		$css = strtolower($css);
		$this->css[$css] = $value;
		return $this;
	}
1221198
public function setValue($value)
    {
        parent::setValue($value);
        $this->setCheckboxesAttributes($value, $this->checkboxes);

        return $this;
    }
805819
private function convertElement(DOMElement $element, $value)
    {
        $sequential = $this->isArrayAllKeySequential($value);

        if (! is_array($value)) {
            $value = htmlspecialchars($value);

            $value = $this->removeControlCharacters($value);

            $element->nodeValue = $value;

            return;
        }

        foreach ($value as $key => $data) {
            if (! $sequential) {
                if (($key === '_attributes') || ($key === '@attributes')) {
                    $this->addAttributes($element, $data);
                } elseif ((($key === '_value') || ($key === '@value')) && is_string($data)) {
                    $element->nodeValue = htmlspecialchars($data);
                } elseif ((($key === '_cdata') || ($key === '@cdata')) && is_string($data)) {
                    $element->appendChild($this->document->createCDATASection($data));
                } elseif ((($key === '_mixed') || ($key === '@mixed')) && is_string($data)) {
                    $fragment = $this->document->createDocumentFragment();
                    $fragment->appendXML($data);
                    $element->appendChild($fragment);
                } else {
                    $this->addNode($element, $key, $data);
                }
            } elseif (is_array($data)) {
                $this->addCollectionNode($element, $data);
            } else {
                $this->addSequentialNode($element, $data);
            }
        }
    }
362751
public function setValue(string $value = null) : Element
    {
        $this->value = $value;
        if (isset($this->model)) {
            $this->model->{$this->attributes['name']} = $value;
        }
        return $this;
    }
79047
protected function addNode(DOMElement $element, $key, $value): void
    {
        $key   = \str_replace(' ', '-', $key);
        $child = $this->element($key);
        $element->appendChild($child);
        $this->convert($child, $value);
    }
556916
public function withAttribute(string $key, $value): ElementInterface
    {
        if ($key === 'value' && is_array($value)) {
            foreach ($this->elements as $name => $element) {
                $this->elements[$name]->withValue($value[$name] ?? '');
            }

            return $this;
        }

        parent::withAttribute($key, $value);

        return $this;
    }
981927
public function addStructuredDataAttachments(\AgentSIB\Diadoc\Api\Proto\Events\StructuredDataAttachment $value)
    {
        if ($this->StructuredDataAttachments === null) {
            $this->StructuredDataAttachments = new \Protobuf\MessageCollection();
        }

        $this->StructuredDataAttachments->add($value);
    }
1106181
public function setElementsAttr($attr, $value) {
		foreach ($this->getElements() as $element) {
			if ($element instanceof Tag) {
				$element->setAttr($attr, $value);
			}
		}
		
		return $this;
	}
1024137
public function withAttribute(string $key, $value): ElementInterface
    {
        $this->attributes[$key] = $value;

        return $this;
    }
666236
function(element, value) {
	if(element){
		if(typeof element.classList === 'undefined') {
			if(u._addClass){
				u._addClass(element, value);
			}else{
				$(element).addClass(value);
			}

		} else {
			element.classList.add(value);
		}
	}

	return this;
}
730659
public function supports(ElementStructureValue $value, AbstractField $field)
    {
        foreach ($this->extractors as $extractor) {
            if ($extractor->supports($value, $field)) {
                return true;
            }
        }

        return false;
    }
1309194
public function setUserValue(string $value) : FormElement
    {
        parent::setUserValue($value);
        $this->attributes['value'] = $value;
        return $this;
    }