Lines Matching defs:type
123 * @param $type - the button type (ie one of {@link BrandButton::TYPE_BUTTONS}
124 * @return array - the brand names that can be used as type in the brand button
126 public static function getBrandNamesForButtonType($type): array
131 if ($brand->supportButtonType($type)) {
233 * @var string $type - the type of button
235 public function getWebUrlTemplate(string $type): ?string
237 if (isset($this->brandDict[$type])) {
238 return $this->brandDict[$type]["web"];
246 * @var ?string $type - the button type
248 public function getTitle(string $type = null): ?string
253 if ($this->brandDict !== null && $type !== null) {
254 if (isset($this->brandDict[$type])) {
255 return $this->brandDict[$type]["popup"];
289 * @param string|null $type - the button type
292 public function getIconName(?string $type): ?string
306 return $this->brandDict["icons"][$type];
321 public function supportButtonType(string $type): bool
323 switch ($type) {
326 if ($this->getWebUrlTemplate($type) !== null) {