Returns an array of default submitted values
@return array
160376
protected function getDefaultInstall()
    {
        $data = array();
        $data['database']['port'] = 3306;
        $data['database']['user'] = 'root';
        $data['database']['type'] = 'mysql';
        $data['database']['host'] = 'localhost';
        $data['database']['password'] = '';
        $data['store']['basepath'] = '';
        $data['store']['title'] = 'GPL Cart';
        $data['store']['host'] = 'localhost';
        $data['store']['timezone'] = date_default_timezone_get();

        return $data;
    }
1272440
protected function defaultSidebarActions()
    {
        if ($this->defaultSidebarActions === null) {
            $this->defaultSidebarActions = [];

            if ($this->form()) {
                $save = [
                    'label'      => $this->form()->submitLabel(),
                    'ident'      => 'save',
                    'buttonType' => 'submit',
                    'priority'   => 90
                ];
                $this->defaultSidebarActions[] = $save;
            }
        }

        return $this->defaultSidebarActions;
    }
450637
public function getFilteredValues()
    {
        $values = [];

        foreach($this->getElements() as $name => $e){
            /** @var \FrenchFrogs\Form\Element\Element $e */
            if ($e->isDiscreet()) {continue;}
            $values[$name] = $e->getFilteredValue();
        }
        return $values;
    }
604101
public function getDefaultIncludes(): array
    {
        return array_values(array_filter(array_keys($this->getIncludeMap()), function ($includeKey) {
            return $this->getIncludeMap()[$includeKey]['default'];
        }));
    }
794222
public function getDefaultValuesForProperties()
    {
        $this->initialize();
        if (!isset($this->fullConfiguration['properties'])) {
            return [];
        }

        $defaultValues = [];
        foreach ($this->fullConfiguration['properties'] as $propertyName => $propertyConfiguration) {
            if (isset($propertyConfiguration['defaultValue'])) {
                $type = isset($propertyConfiguration['type']) ? $propertyConfiguration['type'] : '';
                switch ($type) {
                    case 'DateTime':
                        $defaultValues[$propertyName] = new \DateTime($propertyConfiguration['defaultValue']);
                    break;
                    default:
                        $defaultValues[$propertyName] = $propertyConfiguration['defaultValue'];
                }
            }
        }

        return $defaultValues;
    }
208335
protected function getDefaultFormValues()
    {
        $defaultValues = $this->acumulusConfig->getCredentials()
             + $this->acumulusConfig->getShopSettings()
             + $this->acumulusConfig->getShopEventSettings()
             + $this->acumulusConfig->getCustomerSettings()
             + $this->acumulusConfig->getInvoiceSettings()
             + $this->acumulusConfig->getEmailAsPdfSettings()
             + $this->acumulusConfig->getPluginSettings();
        return $defaultValues;
    }
872751
private function getDefaultSortable()
    {
        if (config('columnsortable.default_first_column', false)) {
            $sortBy = array_first($this->sortable);
            if ( ! is_null($sortBy)) {
                return [$sortBy => config('columnsortable.default_direction', 'asc')];
            }
        }

        return null;
    }
234222
protected function getConfigDefaults()
    {
        $result = $this->getKeyInfo();
        $result = array_map(function ($item) {
            return $item['default'];
        }, $result);
        return $result;
    }
741365
public function getValues()
    {
        $result = [];
        $defaults = $this->defaults();
        foreach ($defaults as $name => $value) {
            if ($this->getData()->has($name)) {
                $result[$name] = $this->getData()->get($name);
            } else {
                $result[$name] = $value;
            }
        }
        return $result;
    }
408184
protected function getDefaultFormValues()
    {
        if ($this->formData) {
            return $this->formData;
        }

        if ($this->user->hasTwoFactor()) {
            $authKey = $this->user->getTwoFactorKey();

        } else {
            $authKey   = null;
        }

        if (! $authKey) {
            $authKey = $this->authenticator->createSecret();

            $this->addMessage(sprintf(
                    $this->_('A new random two factor key was saved for %s.'),
                    $this->user->getFullName()
                    ));

            $this->addMessage($this->_('Click save to enable two factor authentication.'));
            $this->user->setTwoFactorKey($this->authenticator, $authKey, false);

            // Set on save
            $output['twoFactorEnabled'] = 1;
        } else {
            $output['twoFactorEnabled'] = $this->user->isTwoFactorEnabled() ? 1 : 0;

            if (! $output['twoFactorEnabled']) {
                $this->addMessage($this->_('Two factor authentication not active!'));
            }
        }
        $output['twoFactorKey']     = $authKey;

        return $output;
    }
517907
public function getDefaults()
    {
        $this->initInternals();

        if (null === $this->defaults) {
            $this->defaults = $this->blueprintSchema->getDefaults();
        }

        return $this->defaults;
    }
878961
public static function getDefaultInputOptions()
    {
        $inputOptions = array(
            new InputOption('filter', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'A string pattern used to match entities that should be mapped'),
            new InputOption('force', 'f', null, 'Override existing extension'),
            new InputOption('round-trip', 'r', null, 'Roundtrip existing extension'),
        );

        return $inputOptions;
    }
72361
public function getDefaultAttributes()
    {
        $default_attributes = [
            new TextAttribute('identifier', $this),
            new IntegerAttribute('revision', $this, [ 'default_value' => 0 ]),
            new UuidAttribute('uuid', $this, [ 'default_value' => 'auto_gen' ]),
            new TextAttribute('language', $this, [ 'default_value' => 'de_DE' ]),
            new IntegerAttribute('version', $this, [ 'default_value' => 1 ]),
            new TextAttribute('workflow_state', $this),
            new KeyValueListAttribute('workflow_parameters', $this)
        ];

        if ($this->isHierarchical()) {
            $default_attributes[] = new TextAttribute('parent_node_id', $this);
        }

        $default_attributes_map = new AttributeMap($default_attributes);
        return parent::getDefaultAttributes()->append($default_attributes_map);
    }
1371450
public function getSubmitted()
    {
        $fieldType = $this->getType();

        $data = array_key_exists($this->getSlug(), $_POST) === true ? $_POST[$this->getSlug()]: "";

        if (in_array($fieldType, [static::TYPE_CHOICE, static::TYPE_MULTIPLE_CHOICE]) === true) {
            $data = $this->parseChoiceSlugs($data);

            if (is_array($data) === true) {
                foreach ($data as $index => $datum) {
                    $data[$index] = $datum->getValue();
                }
            } else {
                $data = $data->getValue();
            }
        }

        return $data;
    }
576184
public function getRoundDefaults()
    {
        $this->_ensureRounds();

        if ($this->_rounds) {
            $defaults = end($this->_rounds);
            unset($defaults['gro_id_round'], $defaults['gro_id_survey']);

            $defaults['gro_id_order'] = $defaults['gro_id_order'] + 10;
        } else {
            // Rest of defaults come form model
            $defaults = array('gro_id_track' => $this->_trackId);
        }

        return $defaults;
    }
645847
protected function getDefaultFields(): array
    {
        $result = [];
        $types = Options::getBasicSearchFieldTypes();

        foreach ($this->searchFields as $field => $properties) {
            if (in_array($properties['type'], $types)) {
                $result[] = $field;
            }
        }

        return $result;
    }
1133946
public function getOptionDefaults()
    {
        $values = array();
        foreach ($this->options as $option) {
            $values[$option->getName()] = $option->getDefault();
        }

        return $values;
    }