aboutsummaryrefslogtreecommitdiffhomepage
path: root/main/app/sprinkles/FormGenerator/src/Element/Select.php
diff options
context:
space:
mode:
Diffstat (limited to 'main/app/sprinkles/FormGenerator/src/Element/Select.php')
-rw-r--r--main/app/sprinkles/FormGenerator/src/Element/Select.php42
1 files changed, 0 insertions, 42 deletions
diff --git a/main/app/sprinkles/FormGenerator/src/Element/Select.php b/main/app/sprinkles/FormGenerator/src/Element/Select.php
deleted file mode 100644
index da91fbd..0000000
--- a/main/app/sprinkles/FormGenerator/src/Element/Select.php
+++ /dev/null
@@ -1,42 +0,0 @@
-<?php
-/**
- * UF Form Generator
- *
- * @link https://github.com/lcharette/UF_FormGenerator
- * @copyright Copyright (c) 2017 Louis Charette
- * @license https://github.com/lcharette/UF_FormGenerator/blob/master/LICENSE (MIT License)
- */
-
-namespace UserFrosting\Sprinkle\FormGenerator\Element;
-
-use UserFrosting\Sprinkle\FormGenerator\Element\BaseInput;
-
-/**
- * Select input type class.
- * Manage the default attributes required to display a select input type
- *
- * @extends BaseInput
- */
-class Select extends BaseInput
-{
-
- /**
- * {@inheritDoc}
- */
- protected function applyTransformations() {
- $this->element = array_merge([
- "class" => "form-control js-select2",
- "value" => $this->getValue(),
- "name" => $this->name,
- "id" => "field_" . $this->name
- ], $this->element);
-
- // Placeholder is required to be in `data-*` for select 2
- // Plus we translate the placeholder
- if (isset($this->element["placeholder"])) {
- $this->element["data-placeholder"] = $this->element["placeholder"];
- unset($this->element["placeholder"]);
- $this->translateArgValue('data-placeholder');
- }
- }
-}