Return default all options.

@return mixed Return all default options.
179073
protected function _getListOptionsForElem() {
		$cachePath = 'DefaultOptions_ViewExt_' . $this->_currUIlang;
		$cached = Cache::read($cachePath, CAKE_THEME_CACHE_KEY_HELPERS);
		if (!empty($cached)) {
			return $cached;
		}

		$result = [];
		$result['yesNo'] = [
			'yes' => __d('view_extension', 'Yes'),
			'no' => __d('view_extension', 'No')
		];
		$result['showEmpty'] = __d('view_extension', '&lt;None&gt;');
		$result['popupModalLink'] = [
			'escape' => false,
			'class' => 'popup-link',
			'target' => '_blank',
			'data-popover-placement' => 'auto top',
			'data-modal-title' => __d('view_extension', 'Detail information'),
		];
		$result['popupLink'] = [
			'escape' => false,
			'class' => 'popup-link',
			'target' => '_blank',
			'data-popover-placement' => 'auto top',
		];
		$result['modalLink'] = [
			'escape' => false,
			'data-modal-title' => __d('view_extension', 'Detail information'),
		];
		$result['confirmLink'] = [
			'escape' => false,
			'data-confirm-msg' => __d('view_extension', 'Are you sure you wish to delete this data?'),
			'data-confirm-btn-ok' => __d('view_extension', 'Yes'),
			'data-confirm-btn-cancel' => __d('view_extension', 'No')
		];
		$result['paginationSortPjax'] = [
			'linkOpt' => [
				'title' => __d('view_extension', 'Click to sort by this fiels'),
				'data-toggle' => 'pjax'
			],
			'iconDir' => [
				'asc' => $this->iconTag('fas fa-long-arrow-alt-up'),
				'desc' => $this->iconTag('fas fa-long-arrow-alt-down'),
			]
		];
		$result['truncateText'] = [
			'truncateOpt' => [
				'ellipsis' => $this->Html->link($this->iconTag('fas fa-angle-double-right'), '#', [
					'role' => 'button',
					'escape' => false,
					'data-toggle' => 'collapse-text-expand',
					'class' => 'collapse-text-action-btn',
					'title' => __d('view_extension', 'Expand text')
					]),
				'exact' => false,
				'html' => true
			],
			'collapseLink' => $this->Html->link($this->iconTag('fas fa-angle-double-left'), '#', [
				'role' => 'button',
				'escape' => false,
				'data-toggle' => 'collapse-text-roll-up',
				'class' => 'collapse-text-action-btn',
				'title' => __d('view_extension', 'Roll up text')
			])
		];
		$result['form'] = [
			'role' => 'form',
			'requiredcheck' => true,
			'data-required-msg' => __d('view_extension', 'Please fill in this field'),
		];
		$result['barPaging'] = [
			'firstPage' => [
				'icon' => $this->iconTag('fas fa-angle-double-left'),
				'linkOpt' => [
					'tag' => 'li',
					'escape' => false,
					'title' => __d('view_extension', 'First page'),
					'data-toggle' => 'tooltip',
				]
			],
			'previousPage' => [
				'icon' => $this->iconTag('fas fa-angle-left'),
				'linkOpt' => [
					'tag' => 'li',
					'escape' => false,
					'title' => __d('view_extension', 'Previous page'),
					'data-toggle' => 'tooltip',
				]
			],
			'numbers' => [
				'separator' => '',
				'ellipsis' => '...',
				'tag' => 'li',
				'currentLink' => true,
				'currentClass' => 'active',
				'currentTag' => 'a'
			],
			'nextPage' => [
				'icon' => $this->iconTag('fas fa-angle-right'),
				'linkOpt' => [
					'tag' => 'li',
					'escape' => false,
					'title' => __d('view_extension', 'Next page'),
					'data-toggle' => 'tooltip',
				]
			],
			'lastPage' => [
				'icon' => $this->iconTag('fas fa-angle-double-right'),
				'linkOpt' => [
					'tag' => 'li',
					'escape' => false,
					'title' => __d('view_extension', 'Last page'),
					'data-toggle' => 'tooltip',
				]
			],
			'showList' => [
				'icon' => $this->iconTag('fas fa-align-justify'),
				'linkOpt' => [
					'title' => __d('view_extension', 'Show as list'),
					'escape' => false
				]
			],
			'goToPage' => [
				'link' => $this->Html->link(
					$this->iconTag('fas fa-ellipsis-h'),
					'#',
					[
						'role' => 'button',
						'escape' => false,
						'data-toggle' => 'collapse',
						'aria-expanded' => 'false',
						'data-target' => '.control-go-to-page',
						'title' => __d('view_extension', 'Go to the page'),
					]
				),
				'spin' => [
					'id' => 'gotopagebar',
					'class' => 'input-sm',
					'autocomplete' => 'off',
					'min' => '1',
					'step' => '1',
					'verticalbuttons' => 'false',
					'postfix' => $this->iconTag('fas fa-share'),
					'postfix_extraclass' => 'btn btn-default btn-go-to-page',
					'title' => __d('view_extension', 'The page number to quickly jump')
				]
			],
			'numLines' => [
				'id' => 'numlinesbar',
				'type' => 'select',
				'style' => 'btn-default btn-sm',
				'width' => false,
				'live-search' => false,
				'size' => 'auto',
				'class' => 'form-control show-tick filter-condition input-sm',
				'autocomplete' => 'off',
				'div' => false,
				'label' => false,
				'title' => __d('view_extension', 'Number of lines'),
			]
		];
		$result['buttonsMove'] = [
			'btnDrag' => $this->buttonLink(
				'fas fa-arrows-alt',
				'btn-primary',
				'#',
				[
					'role' => 'button',
					'data-toggle' => 'drag',
					'title' => __d('view_extension', 'Drag and drop this item'),
				]
			),
			'btnsMove' => [
				[
					'icon' => 'fas fa-angle-double-up',
					'title' => __d('view_extension', 'Move top'),
					'url' => ['top']
				],
				[
					'icon' => 'fas fa-angle-up',
					'title' => __d('view_extension', 'Move up'),
					'url' => ['up']
				],
				[
					'icon' => 'fas fa-angle-down',
					'title' => __d('view_extension', 'Move down'),
					'url' => ['down']
				],
				[
					'icon' => 'fas fa-angle-double-down',
					'title' => __d('view_extension', 'Move bottom'),
					'url' => ['bottom']
				],
			]
		];
		$result['loadMore'] = [
			'linkTitle' => __d('view_extension', 'Load more'),
			'linkOpt' => [
				'role' => 'button',
				'data-toggle' => 'load-more',
				'title' => __d('view_extension', 'Load more informations')
			]
		];
		$result['btnPrint'] = $this->button(
			'fas fa-print fa-lg',
			'btn btn-default',
			[
				'data-toggle' => 'print',
				'class' => 'view-extension-print-btn',
				'title' => __d('view_extension', 'Print this page')
			]
		);
		$result['btnHeaderMenu'] = $this->ExtBs3Form->button(
			$this->iconTag('fas fa-bars fa-lg') . '&nbsp;' .
			$this->Html->tag('span', '', ['class' => 'caret']),
			[
				'type' => 'button',
				'class' => 'btn btn-default dropdown-toggle',
				'data-toggle' => 'dropdown',
				'title' => __d('view_extension', 'Menu of operations'),
				'aria-haspopup' => 'true',
				'aria-expanded' => 'false',
				'id' => 'pageHeaderMenu'
			]
		);
		Cache::write($cachePath, $result, CAKE_THEME_CACHE_KEY_HELPERS);

		return $result;
	}
59000
protected function defaults()
    {
        return [
            'options'       => ['placeholder' => 'Search for a repo ...'],
            'pluginOptions' => [
                'allowClear'              => true,
                'minimumInputLength'      => 0,
                'minimumResultsForSearch' => 'Infinity',
                'ajax'                    => [
                    'dataType'       => 'json',
                    'delay'          => 250,
                    'data'           => new JavaScriptExpression($this->ajaxData()),
                    'processResults' => new JavaScriptExpression($this->processResults()),
                    'cache'          => true
                ],
                'escapeMarkup'            => new JavaScriptExpression($this->escapeMarkup()),
                'templateResult'          => new JavaScriptExpression($this->templateResult()),
                'templateSelection'       => new JavaScriptExpression($this->templateSelection()),
            ],
        ];
    }
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;
    }
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;
    }
85853
public function getDefault()
    {
        if ($this->reflection->isDefaultValueAvailable()
            and $default = $this->reflection->getDefaultValue()
        ) {
            if (is_scalar($default)) {
                return $default;
            } else {
                return $this->tostring($default);
            }
        }
        if ($this->reflection->isArray()) {
            return '[]';
        }
        if ($this->isPassedByReference()) {
            return 'null';
        } elseif ($this->reflection->getClass()) {
            // This gets injected as a new instance.
            return null;
        }
        $type = $this->getType();
        if (!$type) {
            $type = $this->extractParameterData();
        }
        // Guesstimated values:
        switch ($type) {
            case 'int': case 'integer': case 'float':
                return 0;
            case 'string':
                return "''";
            case 'array':
                return '[]';
        }
        return null;
    }
745200
public function getDefaultConfiguration()
	{
		$query = $this->createQueryBuilder('c');
		$query->where('c.isDefault=:isDefault')
			->orderBy('c.updatedAt', 'DESC')
			->setMaxResults(1)
			->setParameter(':isDefault', true);
		
		return $query->getQuery()->getResult();
	}
1105842
public function getOptions()
    {
        $options = [];
        foreach ($this->childNodes as $child) {
            if ($child instanceof Option) {
                $options[] = $child;
            }
        }
        return $options;
    }
1221432
public function getDefaultOptions(): array
    {
        // Setup default validation rules.
        $this->defaultOptions['rules'] = $this->rules;

        // Setup default messages.
        $this->defaultOptions['messages'] = $this->messages;

        // Setup default placeholder.
        $this->defaultOptions['placeholder'] = $this->placeholder ?? $this->getBaseName();

        // Setup default label.
        $this->defaultOptions['label'] = $this->label ?? ucfirst(str_replace(['-', '_'], ' ', $this->getBaseName()));

        return $this->defaultOptions;
    }
483216
public function getOptions()
    {
        $options = [];
        foreach ($this->options as $name => $option) {
            $options[$name] = $option->getValue();
        }

        return $options;
    }
26914
public function getOptions()
    {
        return [
            ['force', 'f', InputOption::VALUE_NONE, 'Force override existing files'],
            ['domain', false, InputOption::VALUE_NONE, 'Install in a subdomain'],
            ['lucid', false, InputOption::VALUE_NONE, 'Lucid architecture'],
            ['model', null, InputOption::VALUE_NONE, 'Exclude model and migration'],
            ['views', null, InputOption::VALUE_NONE, 'Exclude views'],
            ['routes', null, InputOption::VALUE_NONE, 'Exclude routes'],
        ];
    }
372661
protected function getDefaultOptions()
    {
        $settings = [
            'allow_redirects' => true,
            'exceptions'      => true,
            'decode_content'  => true,
            'verify'          => true
        ];

        // Use the standard Linux HTTP_PROXY and HTTPS_PROXY if set.
        // We can only trust the HTTP_PROXY environment variable in a CLI
        // process due to the fact that PHP has no reliable mechanism to
        // get environment variables that start with "HTTP_".
        if (php_sapi_name() == 'cli' && getenv('HTTP_PROXY')) {
            $settings['proxy']['http'] = getenv('HTTP_PROXY');
        }

        if ($proxy = getenv('HTTPS_PROXY')) {
            $settings['proxy']['https'] = $proxy;
        }

        return $settings;
    }
658768
public function getDefaultOptions(): array
    {
        $options = parent::getDefaultOptions();

        // Check the "type" attribute. If it is not set,
        // let's define it by default to "submit".
        if (! isset($options['attributes']['type'])) {
            $options['attributes']['type'] = 'submit';
        }

        // By default, disable button field type to be mapped
        // to a data object.
        $options['mapped'] = false;

        return $options;
    }
521372
public function getDefaultConfig() {
		$configs = [];
		$schema = $this->getFullSchema();
		foreach ($schema as $field => $metadata) {
			$configs[$this->alias][$field] = Hash::get($metadata, 'default');
		}

		return $configs;
	}
442183
public function all() {
		if (!isset($this->settings)) {
			$this->settings = array_merge($this->getDefaults(), $this->plugin->getAllSettings());
		}
		return $this->settings;
	}
409227
public function defaults()
    {
        $baseDir = rtrim(realpath(__DIR__.'/../../../'), '/');
        $confDir = $baseDir.'/config';

        return $this->loadFile($confDir.'/admin.config.default.json');
    }
306883
public function options()
    {
        if (!isset($this->_data['options']) || (isset($this->_data['options']) && empty($this->_data['options']))) {
            // No options provided
            return [];
        }
        if (!is_array($this->_data['options'])) {
            // An empty array?
            return [];
        }

        return ([ResourceTable::ALL_SELECT_VALUES_KEY => trans('resource-table::default.All')] + $this->_data['options']);
    }
1163218
public function propertiesOptions()
    {
        if ($this->propertiesOptions === null) {
            $this->propertiesOptions = $this->defaultPropertiesOptions();
        }

        return $this->propertiesOptions;
    }