public function setAttribute($key, $value, $append = false, $translated = false) { if ($translated) { $this->translatedArguments[] = $key; $this->translatedArguments = array_unique($this->translatedArguments); $value = $this->getTranslator()->translate($value); } Mesour\Components\Utils\Helpers::createAttribute($this->attributes, $key, $value, $append); if ($this->htmlElement) { $this->htmlElement->{$key}($this->getAttribute($key, false)); } return $this; }
public function setAttribute($key, $value, $append = false) { Mesour\Components\Utils\Helpers::createAttribute($this->attributes, $key, $value, $append); return $this; }