Lines Matching refs:brand
68 const TYPE_BUTTON_BRAND = "brand";
81 private $brand;
93 $this->brand = Brand::create($brandName);
124 public static function createBrandButton(string $brand): BrandButton
126 return new BrandButton($brand, self::TYPE_BUTTON_BRAND);
220 $urlTemplate = $this->brand->getWebUrlTemplate($this->type);
222 throw new ExceptionBadArgument("The brand ($this) does not support the $this->type button (The $this->type URL is unknown)");
243 if ($this->brand->getName() == \action_plugin_combo_metatwitter::CANONICAL) {
273 return $this->brand->__toString();
282 $title = $this->brand->getTitle($this->iconType);
286 $name = ucfirst($this->brand->getName());
326 // custom brand default color
391 return $this->brand;
402 return "{$this->getType()}-{$this->brand->getName()}-{$this->getWidget()}-{$this->getIcon()}";
424 $iconName = $this->brand->getIconName($this->iconType);
427 throw new ExceptionNotFound("No {$this->iconType} icon could be found for the known brand ($this)");
509 if ($this->brand->getIconName($this->iconType) !== null) {
608 if ($this->brand->getBrandUrl() !== null) {
609 $buttonAttributes->addOutputAttributeValue("href", $this->brand->getBrandUrl());
662 return "$comboLibrary:brand:{$this->getBrand()->getName()}:{$this->iconType}";
671 return $this->brand->getPrimaryColor();
679 return $this->brand->getSecondaryColor();