Lines Matching refs:widget
52 private $widget = self::WIDGET_BUTTON_VALUE;
104 * Return all combination of widget type and icon type
110 foreach (self::WIDGETS as $widget) {
115 $variants[] = [BrandTag::ICON_ATTRIBUTE => $typeIcon, TagAttributes::TYPE_KEY => $widget];
133 public function setWidget($widget): BrandButton
138 $this->widget = $widget;
139 $widget = trim(strtolower($widget));
140 if (!in_array($widget, self::WIDGETS)) {
141 throw new ExceptionCompile("The {$this->type} widget ($widget} is unknown. The possible widgets value are " . implode(",", self::WIDGETS));
179 string $widget = self::WIDGET_BUTTON_VALUE,
184 ->setWidget($widget)
195 string $widget = self::WIDGET_BUTTON_VALUE,
201 ->setWidget($widget)
311 switch ($this->widget) {
361 switch ($this->widget) {
444 switch ($this->widget) {
473 return $this->widget;
485 switch ($this->widget) {