Lines Matching refs:brandButton
77 $brandButton = self::createButtonFromAttributes($tagAttributes);
86 $style = $brandButton->getStyle();
88 return LogUtility::wrapInRedForHtml("The style of the {$brandButton->getType()} button ($brandButton) could not be determined. Error: {$e->getMessage()}");
90 $snippetId = $brandButton->getStyleScriptIdentifier();
97 $tagAttributes = self::mixBrandButtonToTagAttributes($tagAttributes, $brandButton);
123 $logoShouldBeInAnchorElement = !($brandButton->getWidget() === BrandButton::WIDGET_LINK_VALUE && $textFound);
132 if (!$brandImageFound && $brandButton->hasIcon()) {
134 $iconAttributes = $brandButton->getIconAttributes();
143 if ($brandButton->getBrand()->getName() === Brand::CURRENT_BRAND) {
168 $brandButton->getBrand()->getName() === Brand::CURRENT_BRAND
169 && !$brandButton->hasIcon()
196 $brandButton = (new BrandButton($brandName, $type))
202 $brandButton->setWidth($width);
206 $brandButton->setLinkTitle($title);
210 $brandButton->setPrimaryColor($color);
214 $brandButton->setSecondaryColor($secondaryColor);
218 $brandButton->setHandle($handle);
220 return $brandButton;
226 public static function mixBrandButtonToTagAttributes(TagAttributes $tagAttributes, BrandButton $brandButton): TagAttributes
254 $tagAttributes->mergeWithCallStackArray($brandButton->getHtmlAttributes()->toCallStackArray());