Skip to content

Instantly share code, notes, and snippets.

View vijaycs85's full-sized avatar

Vijaya Chandran Mani vijaycs85

View GitHub Profile
// Default horizon date.
$horizon_days = 90;
if (!empty($wrapper) && is_object($wrapper)) {
$horizon_days = $wrapper->getBookingHorizon();
// Check if we have to ask for time
if (!$wrapper->isBookableByDay()) {
$default_details['ask_time'] = TRUE;
}
}
// Settings for calendar picker
# Schema for the configuration files of the Editor module.
editor.editor.*:
type: mapping
label: 'Contact category'
mapping:
format:
type: string
label: 'Name'
editor:
# Schema for configuration files of the Field module.
field.settings:
type: mapping
label: 'Field settings'
mapping:
purge_batch_size:
type: integer
label: 'Maximum number of field data records to purge'
field_instance.text_textarea_with_summary.settings:
type: mapping
label: 'Text area with a summary'
mapping:
text_processing:
type: string
label: 'Text processing'
display_summary:
type: boolean
label: 'Summary input'
# Working
field.instance.*.*.*:
type: mapping
label: 'Field instance settings'
mapping:
default_value:
type: field_instance.[%parent.widget.type].default
field_instance.text_textarea_with_summary.default:
# field.instance.node.article.body.yml
default_value:
-
summary: ''
value: "<p>default 1</p>\r\n"
format: basic_html
field_type: text_with_summary
-
summary: ''
value: "<p>default 2</p>\r\n"
<?php
/**
* Submit handler to save config translation.
*/
function config_translation_form_submit(&$form, &$form_state) {
$form_values = $form_state['values'];
$language = $form_values['language'];
$group = $form_values['group'];
// For the form submission handling, use the override free context.
# main schema
views.view:
...
...
...
sort:
type: views.sort.[%parent.table]_[%parent.field]
views.sort.node_status:
<code>
+++ b/core/modules/update/lib/Drupal/update/Controller/UpdateFetchController.phpundefined
@@ -0,0 +1,103 @@
+ public static function create(ContainerInterface $container) {
+ return new static();
</code>
+++ b/core/modules/views/config/schema/views.display.schema.ymlundefined
index 0000000..2050a88
--- /dev/null
--- /dev/null
+++ b/core/modules/views/config/schema/views.empty.schema.ymlundefined
+++ b/core/modules/views/config/schema/views.empty.schema.ymlundefined
+++ b/core/modules/views/config/schema/views.empty.schema.ymlundefined
@@ -0,0 +1,5 @@