diff --git a/core/modules/options/lib/Drupal/options/Tests/OptionsArrayFlattenUnitTest.php b/core/modules/options/lib/Drupal/options/Tests/OptionsArrayFlattenUnitTest.php new file mode 100644 index 0000000..259c5d5 --- /dev/null +++ b/core/modules/options/lib/Drupal/options/Tests/OptionsArrayFlattenUnitTest.php @@ -0,0 +1,43 @@ + 'Options flatten array', + 'description' => 'Test multi-dimensional array is flattened.', + 'group' => 'Field types', + ); + } + + public function testArrayFlatten() { + $p = array('v1' => 'l1', 'g1' => array('v2' => 'l2', 'v3' => 'l3')); + $sub = options_array_flatten($p); + $this->assertEqual(array('v1' => 'l1', 'v2' => 'l2', 'v3' => 'l3'), $sub); + + $p = array ( + 'parent1' => array(3 => 'child1', 4 => 'child2', 5 => 'child3'), + 'parent2' => array(8 => 'child1', 9 => 'child2') + ); + $sub = options_array_flatten($p); + $this->assertEqual(array( + 3 => 'child1', 4 => 'child2', 5 => 'child3', + 8 => 'child1', 9 => 'child2'), $sub + ); + } +} diff --git a/core/modules/options/options.module b/core/modules/options/options.module index 5953ab1..9ad549b 100644 --- a/core/modules/options/options.module +++ b/core/modules/options/options.module @@ -124,3 +124,74 @@ function _options_values_in_use($entity_type, $field_name, $values) { return FALSE; } + +/** + * Implements hook_field_validate(). + * + * Possible error codes: + * - 'list_illegal_value': The value is not part of the list of allowed values. + */ +function options_field_validate(EntityInterface $entity = NULL, $field, $instance, $langcode, $items, &$errors) { + // When configuring a field instance, the default value is validated without + // an entity, but options_allowed_values() and the callback it invokes + // require an entity, because the result can depend on entity type, bundle, + // and other entity data. + if (!isset($entity)) { + $ids = (object) array('entity_type' => $instance->entity_type, 'bundle' => $instance->bundle, 'entity_id' => NULL); + $entity = _field_create_entity_from_ids($ids); + } + + // Flatten the array before validating to account for optgroups. + $allowed_values = options_array_flatten(options_allowed_values($field, $instance, $entity)); + foreach ($items as $delta => $item) { + if (!empty($item['value'])) { + if (!empty($allowed_values) && !isset($allowed_values[$item['value']])) { + $errors[$field['field_name']][$langcode][$delta][] = array( + 'error' => 'list_illegal_value', + 'message' => t('%name: illegal value.', array('%name' => $instance['label'])), + ); + } + } + } +} + +/** + * Implements hook_field_is_empty(). + */ +function options_field_is_empty($item, $field_type) { + if (empty($item['value']) && (string) $item['value'] !== '0') { + return TRUE; + } + return FALSE; +} + +/** + * Implements hook_options_list(). + */ +function options_options_list(FieldDefinitionInterface $field_definition, EntityInterface $entity) { + return options_allowed_values($field_definition, $entity); +} + +/** + * Flattens an array of allowed values. + * + * @param array $array + * A single or multidimensional array + * + * @return array + * A flattened array + */ +function options_array_flatten($array) { + $result = array(); + if (is_array($array)) { + foreach ($array as $key => $value) { + if (is_array($value)) { + $result += options_array_flatten($value); + } + else { + $result[$key] = $value; + } + } + } + return $result; +} diff --git a/modules/config_inspector/LICENSE.txt b/modules/config_inspector/LICENSE.txt new file mode 100644 index 0000000..d159169 --- /dev/null +++ b/modules/config_inspector/LICENSE.txt @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. diff --git a/modules/config_inspector/config_inspector.info.yml b/modules/config_inspector/config_inspector.info.yml new file mode 100644 index 0000000..bbd6a97 --- /dev/null +++ b/modules/config_inspector/config_inspector.info.yml @@ -0,0 +1,7 @@ +name: 'Configuration inspector' +type: module +description: 'Provides a configuration data and structure inspector tool.' +package: Development +version: VERSION +configure: admin/reports/config-inspector +core: 8.x diff --git a/modules/config_inspector/config_inspector.module b/modules/config_inspector/config_inspector.module new file mode 100644 index 0000000..d1811be --- /dev/null +++ b/modules/config_inspector/config_inspector.module @@ -0,0 +1,427 @@ + 'Configuration inspector', + 'description' => 'Inspect configuration data across modules and themes.', + 'page callback' => 'config_inspector_overview_page', + 'access arguments' => array('inspect configuration'), + ); + $items['admin/reports/config-inspector/%'] = array( + 'title' => 'List', + 'page callback' => 'config_inspector_list_page', + 'page arguments' => array(3), + 'access arguments' => array('inspect configuration'), + 'type' => MENU_CALLBACK, + ); + $items['admin/reports/config-inspector/%/list'] = array( + 'title' => 'List', + 'type' => MENU_DEFAULT_LOCAL_TASK, + 'weight' => -10, + ); + $items['admin/reports/config-inspector/%/tree'] = array( + 'title' => 'Tree', + 'page callback' => 'config_inspector_tree_page', + 'page arguments' => array(3), + 'access arguments' => array('inspect configuration'), + 'type' => MENU_LOCAL_TASK, + 'weight' => 5, + ); + $items['admin/reports/config-inspector/%/form'] = array( + 'title' => 'Form', + 'page callback' => 'config_inspector_form_page', + 'page arguments' => array(3), + 'access arguments' => array('inspect configuration'), + 'type' => MENU_LOCAL_TASK, + 'weight' => 10, + ); + $items['admin/reports/config-inspector/%/raw'] = array( + 'title' => 'Raw data', + 'page callback' => 'config_inspector_data_page', + 'page arguments' => array(3), + 'access arguments' => array('inspect configuration'), + 'type' => MENU_LOCAL_TASK, + 'weight' => 15, + ); + /* + $items['admin/reports/config-inspector/%/translate'] = array( + 'title' => 'Translate', + 'page callback' => 'config_inspector_translate_page', + 'page arguments' => array(3), + 'access arguments' => array('inspect configuration'), + 'type' => MENU_LOCAL_TASK, + 'weight' => 20, + ); + $items['admin/reports/config-inspector/%/context'] = array( + 'title' => 'Context', + 'page callback' => 'config_inspector_context_page', + 'page arguments' => array(3), + 'access arguments' => array('inspect configuration'), + 'type' => MENU_LOCAL_TASK, + 'weight' => 25, + ); + */ + return $items; +} + +/** + * Implements hook_permission(). + */ +function config_inspector_permission() { + return array( + 'inspect configuration' => array( + 'title' => t('Inspect configuration'), + 'description' => t('Use developer inspection tools to review configuration.'), + ), + ); +} + +/** + * Overview page + */ +function config_inspector_overview_page() { + /*$locale = module_exists('locale'); + if (!$locale) { + drupal_set_message(t('Enable the Interface translation module to inspect translations.')); + }*/ + + $rows = array(); + foreach (config_inspector_name_list() as $name) { + // Only handle elements with a schama. The schema system falls back on the + // Property class for unknown types. See http://drupal.org/node/1905230 + $definition = config_typed()->getDefinition($name); + if (is_array($definition) && $definition['class'] == '\Drupal\Core\Config\Schema\Property') { + continue; + } + + // Add translate options if locale is enabled. + /*if ($locale) { + $list = array(); + foreach (language_list() as $language) { + $list[] = l($language->name, 'admin/reports/config-inspector/' . $name . '/translate/' . $language->langcode); + } + $translate = implode(' | ', $list); + } + else { + $translate = ''; + }*/ + $rows[] = array( + $name, + l(t('List'), 'admin/reports/config-inspector/' . $name . '/list'), + l(t('Tree'), 'admin/reports/config-inspector/' . $name . '/tree'), + l(t('Form'), 'admin/reports/config-inspector/' . $name . '/form'), + l(t('Raw data'), 'admin/reports/config-inspector/' . $name . '/raw'), + //$translate, + ); + } + $header = array(t('Configuration key'), array('data' => t('Operations'), 'colspan' => 4)); + return theme('table', array('header' => $header, 'rows' => $rows)); +} + +/** + * List all available configuration names. + */ +function config_inspector_name_list() { + return drupal_container()->get('config.storage')->listAll(); +} + +// == Page callbacks ========================================================== + +/** + * List (table) inspection view of the configuration. + */ +function config_inspector_list_page($name = 'image.style.large') { + drupal_set_title(t('List of configuration data for %name', array('%name' => $name)), TRUE); + return config_inspector_format_list(config_typed()->get($name)); +} + +/** + * Tree inspection view of the configuration. + */ +function config_inspector_tree_page($name = 'image.style.large') { + drupal_set_title(t('Tree of configuration data for %name', array('%name' => $name)), TRUE); + return config_inspector_format_tree(config_typed()->get($name)); +} + +/** + * Form based configuration data inspection. + */ +function config_inspector_form_page($name = 'image.style.large') { + drupal_set_title(t('Raw configuration data for %name', array('%name' => $name)), TRUE); + return drupal_get_form('config_inspector_form', config_typed()->get($name)); +} + +/** + * Raw configuration data inspection. + */ +function config_inspector_data_page($name = 'image.style.large') { + drupal_set_title(t('Raw configuration data for %name', array('%name' => $name)), TRUE); + $output = ''; + $output .= config_inspector_dump(config($name)->get(), 'Configuration data'); + $output .= config_inspector_dump(config_typed()->getDefinition($name), 'Configuration schema'); + return $output; +} + +// == Format functions ======================================================== + +/** + * Format config schema as list table. + */ +function config_inspector_format_list($schema) { + $header = array(t('Name'), t('Type'), t('Value')); + $rows = array(); + foreach (config_inspector_element_tolist($schema) as $name => $data) { + $rows[] = array( + $name, + $data->getType(), + $data->getString(), + ); + } + return theme('table', array('header' => $header, 'rows' => $rows)); +} + +/** + * Gets all contained typed data properties as plain array. + * + * @return array + * List of Element objects indexed by full name (keys with dot notation). + */ +function config_inspector_element_tolist($schema) { + $list = array(); + foreach ($schema as $key => $element) { + if ($element instanceof Element) { + foreach (config_inspector_element_tolist($element) as $subkey => $element) { + $list[$key . '.' . $subkey] = $element; + } + } + else { + $list[$key] = $element; + } + } + return $list; +} + +/** + * Format config schema as a tree. + */ +function config_inspector_format_tree($schema, $collapsed = FALSE, $base_key = '') { + $build = array(); + foreach ($schema as $key => $element) { + $type = $element->getType(); + $definition = $element->getDefinition() + array('label' => t('N/A')); + $element_key = $base_key . $key; + if ($element instanceof Element) { + $build[$key] = array( + '#type' => 'details', + '#title' => $definition['label'], + '#description' => $element_key . ' (' . $type . ')', + '#collapsible' => TRUE, + '#collapsed' => $collapsed, + ) + config_inspector_format_tree($element, TRUE, $element_key . '.'); + } + else { + $value = $element->getString(); + $build[$key] = array( + '#type' => 'item', + '#title' => $definition['label'], + '#markup' => check_plain(empty($value) ? t('') : $value), + '#description' => $element_key . ' (' . $type . ')', + ); + } + } + return $build; +} + +/** + * Helper function to dump data in a reasonably reviewable fashion. + */ +function config_inspector_dump($data, $title = 'Data') { + $output = '

' . $title . '

'; + $output .= '
';
+  $output .= htmlspecialchars(var_export($data, TRUE));
+  $output .= '
'; + $output .= '
'; + return $output; +} + +/** + * Build configuration form with metadata and values. + */ +function config_inspector_form($form, &$form_state, $schema) { + $form['structure'] = config_inspector_build_form($schema); + return $form; +} + +/** + * Format config schema as a tree. + */ +function config_inspector_build_form($schema, $collapsed = FALSE) { + $build = array(); + foreach ($schema as $key => $element) { + $definition = $element->getDefinition() + array('label' => t('N/A')); + if ($element instanceof Element) { + $build[$key] = array( + '#type' => 'details', + '#title' => $definition['label'], + '#collapsible' => TRUE, + '#collapsed' => $collapsed, + ) + config_inspector_build_form($element, TRUE); + } + else { + $type = $element->getType(); + switch ($type) { + case 'boolean': + $type = 'checkbox'; + break; + case 'string': + case 'path': + case 'label': + $type = 'textfield'; + break; + case 'text': + $type = 'textarea'; + break; + case 'integer': + $type = 'number'; + break; + } + $value = $element->getString(); + $build[$key] = array( + '#type' => $type, + '#title' => $definition['label'], + '#default_value' => $value, + ); + } + } + return $build; +} + +// == Unused code ============================================================= +// == Unused code ============================================================= +// == Unused code ============================================================= + +/** + * Create configuration form element. + */ +function _config_inspector_form_element($meta) { + $element = array(); + // Some mapping to form api elements. + $translate_type = array( + 'string' => 'textfield', + 'text' => 'textarea', + ); + foreach ($meta as $key => $value) { + switch ($key) { + case 'nested': + case 'meta': + case 'subkeys': + case 'group': + // Do nothing, these are config only properties. + break; + case 'value': + // Where we set the value will depend on the type of element. + switch ($meta['type']) { + case 'value': + $element['#value'] = $value; + break; + case 'item': + $element['#markup'] = $value; + break; + default: + $element['#default_value'] = $value; + } + + break; + case 'title': + case 'description': + // Translatable values. + $element['#' . $key] = t($value); + break; + case 'type': + // Some basic type translation then fall back to default + if (isset($translate_type[$value])) { + $value = $translate_type[$value]; + } + default: + // Other properties just move to form notation. + $element['#' . $key] = $value; + break; + } + } + return $element; +} + +/** + * Gets config data wrapped with the right metadata (translatable) + * + * @param unknown_type $name + */ +function config_inspector_get_translatable($name) { + //$translator = new ConfigTranslation($name, locale_storage()); + //return new TypedConfig($name, config($name)->get(), $translator); + return new LocaleTypedConfig($name, config($name)->get(), locale_storage()); +} + +/** + * Meta-configuration page, list. + */ +function config_inspector_translate_page($langcode, $name) { + drupal_set_title($name . '/' . $langcode); + $output = ''; + $wrapper = config_inspector_get_translatable($name); + $meta = $wrapper->getTranslation($langcode, TRUE); + $output .= '

' . t('Only translated (strict)') . '

'; + $output .= '

' . t('Untranslated properties are filtered out, so you do need some translations to see something here.') . '

'; + $tree = config_inspector_format_tree($meta->get()); + $output .= drupal_render($tree); + $output .= '

' . t('Translated and untranslated') . '

'; + $meta = $wrapper->getTranslation($langcode, FALSE); + $tree = config_inspector_format_tree($meta->get()); + $output .= drupal_render($tree); + return $output; +} + +/** + * Print config object data. + */ +function config_inspector_print($config, $title = 'Configuration data') { + $output = '

' . $title . '

'; + $name = $config->getName(); + $data = $config->get(); + $header = array('Name', $name); + $rows = array(); + foreach ($data as $key => $value) { + $rows[] = array($key, $value); + } + $output .= theme('table', array('header' => $header, 'rows' => $rows)); + return $output; +} + +/** + * Test page for config + */ +function config_inspector_context_page($name = 'system.site') { + drupal_set_title($name); + $output = ''; + $config = config($name); + $output .= config_inspector_print($config, 'Current language'); + // Default language + $config = config_factory(array('language' => language_default()))->get($name); + $output .= config_inspector_print($config, 'Default language'); + $output .= config_inspector_dump($config, $name); + // Get some other config object to check rebuilding the context. + $config = config('system.performance'); + $output .= config_inspector_print($config); + $output .= config_inspector_dump(config_helper_list(), 'Registered Config Helpers'); + + return $output; +} diff --git a/modules/pants/LICENSE.txt b/modules/pants/LICENSE.txt new file mode 100644 index 0000000..d159169 --- /dev/null +++ b/modules/pants/LICENSE.txt @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. diff --git a/modules/pants/PRESENTER-NOTES.txt b/modules/pants/PRESENTER-NOTES.txt new file mode 100644 index 0000000..2c62fb0 --- /dev/null +++ b/modules/pants/PRESENTER-NOTES.txt @@ -0,0 +1,56 @@ +Because 8.x is in active flux, this tutorial falls out of date really easily. + +When performing an update, here are the steps: + +0) Do a clone of what's there into your desktop or something in a folder called + "pants-bak-DO-NOT-PULL" or similar. This will be your reference repo. + + cd ~/Desktop + git clone webchick@git.drupal.org:project/pants.git pants-BAK + cd pants-BAK + +0.5) Grab local copies of all remote branches: + + # Thanks, http://stackoverflow.com/questions/379081/track-all-remote-git-branches-as-local-branches + for remote in `git branch -r | grep -v master `; do git checkout --track $remote ; done + +1) Do a clone of the 7.x-1.x version into your Drupal 8 site: + + cd ~/Sites/8.x/modules + git clone --branch 7.x-1.x webchick@git.drupal.org:project/pants.git + cd pants + +2) Now, walk through the steps until they don't work. If they don't, you need + to rebase. Here's how to do that. + + For example, between DrupalCon Sydney and DrupalCon Portland, we changed + the .info file extension to .info.yml. So before we add core = 8.x, we need + to add a step that renames the file. This affects all branches. + + # Switch to the 8.x-01-basics branch. + git checkout 8.x-01-basics + + # Rename the .info file. + git mv pants.info pants.info.yml + + # Commit it. + git commit -m "Renaming pants.info to pants.info.yml." + + # Rebase it. + git rebase -i 7.x-1.x + + # In rebase, move the commit message to the top of the list from the bottom. + "Successfully rebased and updated refs/heads/8.x-01-basics." + + # Delete the old remote branch. + git push origin :8.x-01-basics + + # Now, push the new one live. + # Yes, the only difference is a ":" ... screw you, Git. + git push origin 8.x-01-basics + + # Pull in that same commit on the other branches. + git status # Make note of commit hash. + git checkout 8.x-02-tests + git cherrypick d34db33f + diff --git a/modules/pants/pants-status.tpl.php b/modules/pants/pants-status.tpl.php new file mode 100644 index 0000000..4ead845 --- /dev/null +++ b/modules/pants/pants-status.tpl.php @@ -0,0 +1,16 @@ + tag in a real module or website. + * + * Available variables: + * - $content: The pants status content. Use render($content) to print it. + * + * @ingroup themeable + */ +?> + \ No newline at end of file diff --git a/modules/pants/pants.admin.inc b/modules/pants/pants.admin.inc new file mode 100644 index 0000000..2a7ff20 --- /dev/null +++ b/modules/pants/pants.admin.inc @@ -0,0 +1,28 @@ + 'radios', + '#title' => t('Pants type'), + '#options' => array( + '' => t('None (just show on/off status)'), + ), + '#default_value' => variable_get('pants_type', ''), + '#description' => t('Choose pants type to show on the user profile.'), + ); + + ctools_include('plugins'); + foreach(ctools_get_plugins('pants', 'pants_type') as $pants_type_id => $pants_type_info) { + $form['pants_type']['#options'][$pants_type_id] = $pants_type_info['label']; + } + + return system_settings_form($form); +} diff --git a/modules/pants/pants.info b/modules/pants/pants.info new file mode 100644 index 0000000..d1898a8 --- /dev/null +++ b/modules/pants/pants.info @@ -0,0 +1,16 @@ +name = Pants +description = Tracks pants status for users. +core = 7.x +files[] = pants.test +dependencies[] = user +dependencies[] = ctools +dependencies[] = list +dependencies[] = options +configure = admin/config/people/pants + +; Information added by drupal.org packaging script on 2013-10-01 +version = "7.x-1.x-dev" +core = "7.x" +project = "pants" +datestamp = "1380622228" + diff --git a/modules/pants/pants.install b/modules/pants/pants.install new file mode 100644 index 0000000..c7d5100 --- /dev/null +++ b/modules/pants/pants.install @@ -0,0 +1,78 @@ + 'TODO: please describe this table!', + 'fields' => array( + 'uid' => array( + 'description' => 'TODO: please describe this field!', + 'type' => 'int', + 'unsigned' => TRUE, + 'not null' => TRUE, + ), + 'status' => array( + 'description' => 'TODO: please describe this field!', + 'type' => 'int', + 'not null' => TRUE, + ), + 'changed' => array( + 'description' => 'TODO: please describe this field!', + 'type' => 'int', + 'not null' => TRUE, + ), + 'changed_by' => array( + 'description' => 'TODO: please describe this field!', + 'type' => 'int', + 'unsigned' => TRUE, + 'not null' => TRUE, + ), + ), + ); + + return $schema; +} + +/** + * Implements hook_install(). + */ +function pants_install() { + field_create_field(array( + 'field_name' => 'pants_status', + 'type' => 'list_boolean', + 'settings' => array( + 'allowed_values' => array( + 0 => t('Off'), + 1 => t('On'), + ), + ), + 'locked' => TRUE, + )); + field_create_instance(array( + 'field_name' => 'pants_status', + 'entity_type' => 'user', + 'bundle' => 'user', + 'label' => t('Pants status'), + 'widget' => array( + 'type' => 'options_onoff', + 'settings' => array( + 'display_label' => TRUE, + ), + ), + )); +} + +/** + * Implements hook_uninstall(). + */ +function pants_uninstall() { + variable_del('pants_type'); + field_delete_field('pants_status'); +} diff --git a/modules/pants/pants.module b/modules/pants/pants.module new file mode 100644 index 0000000..62da55b --- /dev/null +++ b/modules/pants/pants.module @@ -0,0 +1,210 @@ + array( + 'title' => t('Change pants status'), + ), + 'administer pants' => array( + 'title' => t('Administer pants'), + ), + ); +} + +/** + * Access callback: Checks permission to change pants status. + */ +function pants_change_access() { + return user_access('change pants status') || user_access('administer pants'); +} + +///// MENU ///// + +/** + * Implements hook_menu(). + */ +function pants_menu() { + $items['pants/change/%user'] = array( + 'title' => 'Change pants', + 'page callback' => 'pants_change', + 'page arguments' => array(2), + 'access callback' => 'pants_change_access', // Default. + 'delivery callback' => 'ajax_deliver', + 'type' => MENU_CALLBACK, + 'file' => 'pants.pages.inc', + ); + $items['admin/config/people/pants'] = array( + 'title' => 'Pants', + 'description' => 'Administer pants.', + 'page callback' => 'drupal_get_form', + 'page arguments' => array('pants_settings'), + 'access callback' => 'user_access', // Defaut. + 'access arguments' => array('administer pants'), + 'type' => MENU_NORMAL_ITEM, // Default. + 'file' => 'pants.admin.inc', + ); + + return $items; +} + +///// BLOCKS ///// + +/** + * Implements hook_block_info(). + */ +function pants_block_info() { + $blocks['change_pants'] = array( + 'info' => t('Change pants'), + 'cache' => DRUPAL_NO_CACHE, + ); + + return $blocks; +} + +/** + * Implements hook_block_view(). + */ +function pants_block_view($delta = '') { + $block = array(); + + switch ($delta) { + case 'change_pants': + global $user; + $account = user_load($user->uid); + + $block['subject'] = t('Change pants'); + $block['content'] = array( + 'status' => array( + '#theme' => 'pants_status', + '#pants_status' => !empty($account->pants_status[LANGUAGE_NONE][0]['value']), + '#prefix' => '
', + '#suffix' => '
', + ), + 'change_link' => array( + '#type' => 'link', + '#title' => t('Change'), + '#href' => "pants/change/{$user->uid}", + '#ajax' => array( + 'wrapper' => 'pants-change-pants-status', + 'method' => 'html', + 'effect' => 'fade', + ), + ), + ); + break; + } + + return $block; +} + +///// USER PROFILE HOOKS ///// + +/** + * Implements hook_user_presave(). + */ +function pants_user_presave(&$edit, $account, $category) { + global $user; + + $original_pants_status = isset($account->original->pants_status[LANGUAGE_NONE][0]['value']) ? $account->original->pants_status[LANGUAGE_NONE][0]['value'] : NULL; + $new_pants_status = isset($account->pants_status[LANGUAGE_NONE][0]['value']) ? $account->pants_status[LANGUAGE_NONE][0]['value'] : NULL; + if ($new_pants_status !== $original_pants_status) { + db_insert('pants_history') + ->fields(array( + 'uid' => $account->uid, + 'status' => $new_pants_status, + 'changed' => REQUEST_TIME, + 'changed_by' => $user->uid, + )) + ->execute(); + } +} + +/** + * Implements hook_user_view(). + */ +function pants_user_view($account, $view_mode, $langcode) { + if (isset($account->content['pants_status'])) { + $account->content['pants_status'][0] = array( + '#theme' => 'pants_status', + '#pants_status' => $account->pants_status[LANGUAGE_NONE][0]['value'], + '#pants_type' => variable_get('pants_type', ''), + ); + } +} + +///// PLUGIN MANAGEMENT //// + +/** + * Implements hook_ctools_plugin_type(). + */ +function pants_ctools_plugin_type() { + return array( + 'pants_type' => array(), + ); +} + +/** + * Implements hook_ctools_plugin_directory(). + */ +function pants_ctools_plugin_directory($module, $plugin_type) { + $directories['pants']['pants_type'] = 'plugins/pants_type'; + if (isset($directories[$module][$plugin_type])) { + return $directories[$module][$plugin_type]; + } +} + +///// VIEWS //// + +/** + * Implements hook_views_api(). + */ +function pants_views_api() { + return array( + 'api' => 2, + ); +} + +///// THEMING //// + +/** + * Implements hook_theme(). + */ +function pants_theme() { + return array( + 'pants_status' => array( + 'variables' => array('pants_status' => 0, 'pants_type' => ''), + 'template' => 'pants-status', + ), + ); +} + +/** + * Preprocesses variables for pants-status.tpl.php. + * + * @param array $variables + * An associative array containing: + * - pants_status: 1 if the pants are on. 0 if the pants are off. + * - pants_type: Type of pants to display (defaults to none). + */ +function template_preprocess_pants_status(&$variables) { + if ($variables['pants_type']) { + ctools_include('plugins'); + $callback = $variables['pants_status'] ? 'view_enabled callback' : 'view_disabled callback'; + $function = ctools_plugin_load_function('pants', 'pants_type', $variables['pants_type'], $callback); + $variables['content'] = $function(); + } + else { + $variables['content'] = array('#markup' => $variables['pants_status'] ? t('On') : t('Off')); + } +} + diff --git a/modules/pants/pants.pages.inc b/modules/pants/pants.pages.inc new file mode 100644 index 0000000..2e2a644 --- /dev/null +++ b/modules/pants/pants.pages.inc @@ -0,0 +1,23 @@ +pants_status[LANGUAGE_NONE][0]['value']) ? $account->pants_status[LANGUAGE_NONE][0]['value'] : 0; + $new_pants_status = 1 - $current_pants_status; + $account->pants_status[LANGUAGE_NONE][0]['value'] = $new_pants_status; + user_save($account); + return array( + '#theme' => 'pants_status', + '#pants_status' => $new_pants_status, + ); +} diff --git a/modules/pants/pants.test b/modules/pants/pants.test new file mode 100644 index 0000000..feade28 --- /dev/null +++ b/modules/pants/pants.test @@ -0,0 +1,177 @@ + 'Configuration of pants', + 'description' => "Ensures that an administrator can configure the type of pants used on the site.", + 'group' => 'Pants', + ); + } + + function setUp() { + parent::setUp('pants'); + + $this->admin_user = $this->drupalCreateUser(array('administer pants')); + } + + /** + * Ensures pants_type setting can be changed. + */ + function testPantsConfiguration() { + $this->drupalLogin($this->admin_user); + + $this->drupalGet('admin/config/people/pants'); + $this->assertFieldByName('pants_type', ''); + + $this->drupalPost(NULL, array('pants_type' => 'bellbottoms'), t('Save configuration')); + $this->assertFieldByName('pants_type', 'bellbottoms'); + } +} + +/** + * Tests UI of Pants module. + */ +class PantsUITestCase extends DrupalWebTestCase { + + protected $profile = 'testing'; + + /** + * Standard test user. + */ + protected $web_user; + + /** + * An admin user. + */ + protected $admin_user; + + public static function getInfo() { + return array( + 'name' => 'UI on your pants', + 'description' => "Ensures that you can set and get a user's pants status through the UI.", + 'group' => 'Pants', + ); + } + + function setUp() { + parent::setUp('pants', 'views', 'block'); + + $this->web_user = $this->drupalCreateUser(array('change pants status')); + $this->admin_user = $this->drupalCreateUser(array('administer blocks', 'administer pants')); + } + + /** + * Ensures UI functionality is working. + */ + function testPantsUserProfileUI() { + $this->drupalLogin($this->web_user); + $uid = $this->web_user->uid; + + // Save the user profile, so that pants status is initialized and check that + // it's initialized to Off. + $this->drupalPost("user/$uid/edit", array(), t('Save')); + $this->drupalGet("user/$uid"); + $this->assertText('Off'); + + // Change pants status and check it again. + $edit = array('pants_status[' . LANGUAGE_NONE . ']' => 1); + $this->drupalPost("user/$uid/edit", $edit, t('Save')); + $this->drupalGet("user/$uid"); + $this->assertText('On'); + + // Set a non-default pants type. Ensure it is shown as an image. + variable_set('pants_type', 'bellbottoms'); + $this->drupalGet("user/$uid"); + $this->assertRaw('drupalLogin($this->admin_user); + + // Turn on the pants blocks. + $this->drupalPost('admin/structure/block/manage/pants/change_pants/configure', array('regions[bartik]' => 'sidebar_second'), t('Save block')); + $this->drupalPost('admin/structure/block/manage/views/pants_recent-block/configure', array('regions[bartik]' => 'sidebar_second'), t('Save block')); + + // Change pants status from the "Change pants" block. + $this->clickLink(t('Change')); + + // Verify it was changed in the "Recent pants" block. + $this->drupalGet(''); + $this->assertText('put pants on'); + + // Repeat for pants off. + $this->clickLink(t('Change')); + $this->drupalGet(''); + $this->assertText('took pants off'); + } +} + +/** + * Tests AJAX functionality of Pants module. + */ +class PantsAJAXTestCase extends AJAXTestCase { + + protected $profile = 'testing'; + + /** + * Standard test user. + */ + protected $web_user; + + public static function getInfo() { + return array( + 'name' => 'AJAX on your pants', + 'description' => "Ensures that you can set and get a user's pants status through AJAX.", + 'group' => 'Pants', + ); + } + + function setUp() { + parent::setUp('pants'); + + $this->web_user = $this->drupalCreateUser(array('change pants status')); + } + + /** + * Ensures AJAX functionality is working. + */ + function testPantsAJAX() { + $this->drupalLogin($this->web_user); + + // Send an AJAX request and verify the expected command is returned. + $commands = $this->drupalGetAJAX('pants/change/' . $this->web_user->uid); + $expected_command = array( + 'command' => 'insert', + 'data' => 'On', + ); + $this->assertCommand($commands, $expected_command, 'Expected AJAX command returned in response to putting pants on.'); + + // Repeat for pants off. + $commands = $this->drupalGetAJAX('pants/change/' . $this->web_user->uid); + $expected_command = array( + 'command' => 'insert', + 'data' => 'Off', + ); + $this->assertCommand($commands, $expected_command, 'Expected AJAX command returned in response to taking pants off.'); + } +} diff --git a/modules/pants/pants.views.inc b/modules/pants/pants.views.inc new file mode 100644 index 0000000..632f731 --- /dev/null +++ b/modules/pants/pants.views.inc @@ -0,0 +1,107 @@ + 'changed', + 'title' => t('Pants history'), + ); + + // Describe the pants_history.uid field. This was initially copied from + // $data['node']['uid'] within node_views_data(), and then changed as needed. + $data['pants_history']['uid'] = array( + 'title' => t('Pants wearer uid'), + 'help' => t('The user whose pants were taken on/off. If you need more fields than the uid, add the Pants wearer relationship.'), + 'relationship' => array( + 'title' => t('Pants wearer'), + 'help' => t('Relate statuses to the user who is/is not wearing pants.'), + 'handler' => 'views_handler_relationship', + 'base' => 'users', + 'field' => 'uid', + 'label' => t('Pants wearer'), + ), + 'filter' => array( + 'handler' => 'views_handler_filter_user_name', + ), + 'argument' => array( + 'handler' => 'views_handler_argument_numeric', + ), + 'field' => array( + 'handler' => 'views_handler_field_user', + ), + ); + + // Describe the pants_history.status field. This was initially copied from + // $data['node']['status'] within node_views_data(), and then changed as + // needed. + $data['pants_history']['status'] = array( + 'title' => t('Pantsed'), + 'help' => t('Whether or not the user is currently wearing pants.'), + 'field' => array( + 'handler' => 'views_handler_field_boolean', + ), + 'filter' => array( + 'handler' => 'views_handler_filter_boolean_operator', + 'label' => t('Pantsed'), + 'type' => 'yes-no', + // Use status = 1 instead of status <> 0 in WHERE statment. + 'use equal' => TRUE, + ), + 'sort' => array( + 'handler' => 'views_handler_sort', + ), + ); + + // Describe the pants_history.changed field. This was initially copied from + // $data['node']['changed'] within node_views_data(), and then changed as + // needed. + $data['pants_history']['changed'] = array( + 'title' => t('Changed date'), + 'help' => t('The date the pants were taken on/off.'), + 'field' => array( + 'handler' => 'views_handler_field_date', + ), + 'sort' => array( + 'handler' => 'views_handler_sort_date', + ), + 'filter' => array( + 'handler' => 'views_handler_filter_date', + ), + ); + + // Describe the pants_history.changed_by field. This was initially copied from + // $data['node']['uid'] within node_views_data(), and then changed as needed. + $data['pants_history']['changed_by'] = array( + 'title' => t('Pants changer uid'), + 'help' => t('The user whose who did the taking on/off of the pants. If you need more fields than the uid, add the Pants changer relationship.'), + 'relationship' => array( + 'title' => t('Pants changer'), + 'help' => t('Relate statuses to the user who changed it.'), + 'handler' => 'views_handler_relationship', + 'base' => 'users', + 'field' => 'uid', + 'label' => t('Pants changer'), + ), + 'filter' => array( + 'handler' => 'views_handler_filter_user_name', + ), + 'argument' => array( + 'handler' => 'views_handler_argument_numeric', + ), + 'field' => array( + 'handler' => 'views_handler_field_user', + ), + ); + + return $data; +} diff --git a/modules/pants/pants.views_default.inc b/modules/pants/pants.views_default.inc new file mode 100644 index 0000000..df9c45d --- /dev/null +++ b/modules/pants/pants.views_default.inc @@ -0,0 +1,75 @@ +name = 'pants_recent'; + $view->description = ''; + $view->tag = 'default'; + $view->base_table = 'pants_history'; + $view->human_name = 'Recent Pants'; + $view->core = 7; + $view->api_version = '3.0'; + $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ + + /* Display: Master */ + $handler = $view->new_display('default', 'Master', 'default'); + $handler->display->display_options['title'] = 'Recent Pants'; + $handler->display->display_options['use_more_always'] = FALSE; + $handler->display->display_options['access']['type'] = 'none'; + $handler->display->display_options['cache']['type'] = 'none'; + $handler->display->display_options['query']['type'] = 'views_query'; + $handler->display->display_options['exposed_form']['type'] = 'basic'; + $handler->display->display_options['pager']['type'] = 'some'; + $handler->display->display_options['pager']['options']['items_per_page'] = '10'; + $handler->display->display_options['style_plugin'] = 'list'; + $handler->display->display_options['row_plugin'] = 'fields'; + $handler->display->display_options['row_options']['inline'] = array( + 'name' => 'name', + 'status' => 'status', + 'changed' => 'changed', + ); + /* Relationship: Pants history: Pants wearer */ + $handler->display->display_options['relationships']['uid']['id'] = 'uid'; + $handler->display->display_options['relationships']['uid']['table'] = 'pants_history'; + $handler->display->display_options['relationships']['uid']['field'] = 'uid'; + /* Field: User: Name */ + $handler->display->display_options['fields']['name']['id'] = 'name'; + $handler->display->display_options['fields']['name']['table'] = 'users'; + $handler->display->display_options['fields']['name']['field'] = 'name'; + $handler->display->display_options['fields']['name']['relationship'] = 'uid'; + $handler->display->display_options['fields']['name']['label'] = ''; + $handler->display->display_options['fields']['name']['element_label_colon'] = FALSE; + /* Field: Pants history: Pantsed */ + $handler->display->display_options['fields']['status']['id'] = 'status'; + $handler->display->display_options['fields']['status']['table'] = 'pants_history'; + $handler->display->display_options['fields']['status']['field'] = 'status'; + $handler->display->display_options['fields']['status']['label'] = ''; + $handler->display->display_options['fields']['status']['element_label_colon'] = FALSE; + $handler->display->display_options['fields']['status']['type'] = 'custom'; + $handler->display->display_options['fields']['status']['type_custom_true'] = ' put pants on '; + $handler->display->display_options['fields']['status']['type_custom_false'] = ' took pants off '; + $handler->display->display_options['fields']['status']['not'] = 0; + /* Field: Pants history: Changed date */ + $handler->display->display_options['fields']['changed']['id'] = 'changed'; + $handler->display->display_options['fields']['changed']['table'] = 'pants_history'; + $handler->display->display_options['fields']['changed']['field'] = 'changed'; + $handler->display->display_options['fields']['changed']['label'] = ''; + $handler->display->display_options['fields']['changed']['element_label_colon'] = FALSE; + $handler->display->display_options['fields']['changed']['date_format'] = 'time ago'; + + /* Display: Block */ + $handler = $view->new_display('block', 'Block', 'block'); + $views['pants_recent'] = $view; + + return $views; +} diff --git a/modules/pants/plugins/pants_type/bellbottoms.inc b/modules/pants/plugins/pants_type/bellbottoms.inc new file mode 100644 index 0000000..f40ac45 --- /dev/null +++ b/modules/pants/plugins/pants_type/bellbottoms.inc @@ -0,0 +1,20 @@ + t('Bellbottoms'), + 'view_enabled callback' => 'pants_type_bellbottoms_view_enabled', + 'view_disabled callback' => 'pants_type_bellbottoms_view_disabled', +); + +function pants_type_bellbottoms_view_enabled() { + return array( + '#theme' => 'image', + '#path' => 'http://ecx.images-amazon.com/images/I/41xXmNdZn8L._SY200_.jpg', + ); +} + +function pants_type_bellbottoms_view_disabled() { + return array( + '#markup' => t('Off'), + ); +} diff --git a/modules/pants/plugins/pants_type/mchammer.inc b/modules/pants/plugins/pants_type/mchammer.inc new file mode 100644 index 0000000..1de62be --- /dev/null +++ b/modules/pants/plugins/pants_type/mchammer.inc @@ -0,0 +1,20 @@ + t('MC Hammer'), + 'view_enabled callback' => 'pants_type_mchammer_view_enabled', + 'view_disabled callback' => 'pants_type_mchammer_view_disabled', +); + +function pants_type_mchammer_view_enabled() { + return array( + '#theme' => 'image', + '#path' => 'http://nickyscostumes.com.au/images/uploads/hammerpants.jpg', + ); +} + +function pants_type_mchammer_view_disabled() { + return array( + '#markup' => t('Off'), + ); +} diff --git a/patches/081213/2102487-remove-set-title-tracker-5.patch b/patches/081213/2102487-remove-set-title-tracker-5.patch new file mode 100644 index 0000000..ba810bf --- /dev/null +++ b/patches/081213/2102487-remove-set-title-tracker-5.patch @@ -0,0 +1,64 @@ +diff --git a/core/modules/tracker/lib/Drupal/tracker/Controller/TrackerUserTab.php b/core/modules/tracker/lib/Drupal/tracker/Controller/TrackerUserTab.php +index cb595f7..49a7574 100644 +--- a/core/modules/tracker/lib/Drupal/tracker/Controller/TrackerUserTab.php ++++ b/core/modules/tracker/lib/Drupal/tracker/Controller/TrackerUserTab.php +@@ -28,6 +28,6 @@ public function getContent(UserInterface $user) { + * Title callback for the tracker.user_tab route. + */ + public function getTitle(UserInterface $user) { +- return String::checkPlain(user_format_name($user)); ++ return String::checkPlain($user->getUsername()); + } + } +diff --git a/core/modules/tracker/lib/Drupal/tracker/Tests/TrackerTest.php b/core/modules/tracker/lib/Drupal/tracker/Tests/TrackerTest.php +index 7a3983e..8d4a526 100644 +--- a/core/modules/tracker/lib/Drupal/tracker/Tests/TrackerTest.php ++++ b/core/modules/tracker/lib/Drupal/tracker/Tests/TrackerTest.php +@@ -117,6 +117,9 @@ function testTrackerUser() { + $this->assertText($my_published->label(), "Published nodes show up in the user's tracker listing."); + $this->assertNoText($other_published_no_comment->label(), "Other user's nodes do not show up in the user's tracker listing."); + $this->assertText($other_published_my_comment->label(), "Nodes that the user has commented on appear in the user's tracker listing."); ++ // Verify that title and tab title have been set correctly. ++ $this->assertText('Track', 'The user tracker tab has the name "Track".'); ++ $this->assertTitle(t('@name | @site', array('@name' => $this->user->getUsername(), '@site' => \Drupal::config('system.site')->get('name'))), 'The user tracker page has the correct page title.'); + + // Verify that unpublished comments are removed from the tracker. + $admin_user = $this->drupalCreateUser(array('post comments', 'administer comments', 'access user profiles')); +diff --git a/core/modules/tracker/tracker.local_tasks.yml b/core/modules/tracker/tracker.local_tasks.yml +index 7600bd0..8a0ab77 100644 +--- a/core/modules/tracker/tracker.local_tasks.yml ++++ b/core/modules/tracker/tracker.local_tasks.yml +@@ -8,3 +8,8 @@ tracker.users_recent_tab: + title: 'My recent content' + tab_root_id: tracker.page_tab + class: '\Drupal\tracker\Plugin\Menu\UserTrackerTab' ++ ++tracker.user_tab: ++ route_name: tracker.user_tab ++ tab_root_id: user.view ++ title: 'Track' +diff --git a/core/modules/tracker/tracker.pages.inc b/core/modules/tracker/tracker.pages.inc +index eeef432..332d9ac 100644 +--- a/core/modules/tracker/tracker.pages.inc ++++ b/core/modules/tracker/tracker.pages.inc +@@ -17,19 +17,12 @@ + * + * @see tracker_menu() + */ +-function tracker_page($account = NULL, $set_title = FALSE) { ++function tracker_page($account = NULL) { + if ($account) { + $query = db_select('tracker_user', 't') + ->extend('Drupal\Core\Database\Query\PagerSelectExtender') + ->addMetaData('base_table', 'tracker_user') + ->condition('t.uid', $account->id()); +- +- if ($set_title) { +- // When viewed from user/%user/track, display the name of the user +- // as page title -- the tab title remains Track so this needs to be done +- // here and not in the menu definition. +- drupal_set_title(user_format_name($account)); +- } + } + else { + $query = db_select('tracker_node', 't', array('target' => 'slave')) diff --git a/patches/1180992-optgroup-validation-19_0.patch b/patches/1180992-optgroup-validation-19_0.patch new file mode 100644 index 0000000..2d7c35a --- /dev/null +++ b/patches/1180992-optgroup-validation-19_0.patch @@ -0,0 +1,90 @@ +diff --git a/core/modules/options/lib/Drupal/options/Tests/OptionsArrayFlattenUnitTest.php b/core/modules/options/lib/Drupal/options/Tests/OptionsArrayFlattenUnitTest.php +new file mode 100644 +index 0000000..259c5d5 +--- /dev/null ++++ b/core/modules/options/lib/Drupal/options/Tests/OptionsArrayFlattenUnitTest.php +@@ -0,0 +1,43 @@ ++ 'Options flatten array', ++ 'description' => 'Test multi-dimensional array is flattened.', ++ 'group' => 'Field types', ++ ); ++ } ++ ++ public function testArrayFlatten() { ++ $p = array('v1' => 'l1', 'g1' => array('v2' => 'l2', 'v3' => 'l3')); ++ $sub = options_array_flatten($p); ++ $this->assertEqual(array('v1' => 'l1', 'v2' => 'l2', 'v3' => 'l3'), $sub); ++ ++ $p = array ( ++ 'parent1' => array(3 => 'child1', 4 => 'child2', 5 => 'child3'), ++ 'parent2' => array(8 => 'child1', 9 => 'child2') ++ ); ++ $sub = options_array_flatten($p); ++ $this->assertEqual(array( ++ 3 => 'child1', 4 => 'child2', 5 => 'child3', ++ 8 => 'child1', 9 => 'child2'), $sub ++ ); ++ } ++} +diff --git a/core/modules/options/options.module b/core/modules/options/options.module +index 3c649c5..e69c541 100644 +--- a/core/modules/options/options.module ++++ b/core/modules/options/options.module +@@ -414,7 +414,8 @@ function options_field_validate(EntityInterface $entity = NULL, $field, $instanc + $entity = _field_create_entity_from_ids($ids); + } + +- $allowed_values = options_allowed_values($instance, $entity); ++ // Flatten the array before validating to account for optgroups. ++ $allowed_values = options_array_flatten(options_allowed_values($field, $instance, $entity)); + foreach ($items as $delta => $item) { + if (!empty($item['value'])) { + if (!empty($allowed_values) && !isset($allowed_values[$item['value']])) { +@@ -444,3 +445,26 @@ function options_options_list(FieldDefinitionInterface $field_definition, Entity + return options_allowed_values($field_definition, $entity); + } + ++/** ++ * Flattens an array of allowed values. ++ * ++ * @param array $array ++ * A single or multidimensional array ++ * ++ * @return array ++ * A flattened array ++ */ ++function options_array_flatten($array) { ++ $result = array(); ++ if (is_array($array)) { ++ foreach ($array as $key => $value) { ++ if (is_array($value)) { ++ $result += options_array_flatten($value); ++ } ++ else { ++ $result[$key] = $value; ++ } ++ } ++ } ++ return $result; ++} diff --git a/patches/1973498-config-schema-field-taxonomy-3.patch b/patches/1973498-config-schema-field-taxonomy-3.patch new file mode 100644 index 0000000..0590ebe --- /dev/null +++ b/patches/1973498-config-schema-field-taxonomy-3.patch @@ -0,0 +1,63 @@ +diff --git a/core/modules/taxonomy/config/schema/taxonomy.schema.yml b/core/modules/taxonomy/config/schema/taxonomy.schema.yml +index 48e8780..3daf42d 100644 +--- a/core/modules/taxonomy/config/schema/taxonomy.schema.yml ++++ b/core/modules/taxonomy/config/schema/taxonomy.schema.yml +@@ -39,3 +39,58 @@ taxonomy.vocabulary.*: + langcode: + type: string + label: 'Default language' ++ ++field.taxonomy_term_reference.settings: ++ type: mapping ++ label: 'Taxonomy term reference settings' ++ mapping: ++ allowed_values: ++ type: sequence ++ label: 'Allowed values' ++ sequence: ++ - type: mapping ++ label: 'Allowed values' ++ mapping: ++ vocabulary: ++ type: string ++ label: 'Vocabulary' ++ parent: ++ type: string ++ value: 'Parent' ++ ++field.taxonomy_term_reference.instance_settings: ++ type: mapping ++ label: 'Taxonomy term reference settings' ++ mapping: ++ user_register_form: ++ type: boolean ++ label: 'Display on user registration form.' ++ ++field.taxonomy_term_reference.value: ++ type: sequence ++ label: 'Default values' ++ sequence: ++ - type: mapping ++ label: 'Default value' ++ mapping: ++ tid: ++ type: integer ++ label: 'Term ID' ++ ++field_widget.taxonomy_autocomplete.settings: ++ type: mapping ++ label: 'Autocomplete term widget (tagging) settings' ++ mapping: ++ match_operator: ++ type: string ++ label: 'Operation' ++ size: ++ type: integer ++ label: 'Size' ++ autocomplete_path: ++ type: string ++ label: 'Autocomplete patch' ++ placeholder: ++ type: label ++ label: 'Placeholder' ++ diff --git a/patches/1973498-config-schema-field-taxonomy-8.patch b/patches/1973498-config-schema-field-taxonomy-8.patch new file mode 100644 index 0000000..cae9614 --- /dev/null +++ b/patches/1973498-config-schema-field-taxonomy-8.patch @@ -0,0 +1,46 @@ +diff --git a/core/modules/taxonomy/config/schema/taxonomy.schema.yml b/core/modules/taxonomy/config/schema/taxonomy.schema.yml +index 48e8780..b2eb4a5 100644 +--- a/core/modules/taxonomy/config/schema/taxonomy.schema.yml ++++ b/core/modules/taxonomy/config/schema/taxonomy.schema.yml +@@ -39,3 +39,41 @@ taxonomy.vocabulary.*: + langcode: + type: string + label: 'Default language' ++ ++field.taxonomy_term_reference.settings: ++ type: mapping ++ label: 'Taxonomy term reference settings' ++ mapping: ++ allowed_values: ++ type: sequence ++ label: 'Allowed values' ++ sequence: ++ - type: mapping ++ label: 'Allowed values' ++ mapping: ++ vocabulary: ++ type: string ++ label: 'Vocabulary' ++ parent: ++ type: string ++ value: 'Parent' ++ ++field.taxonomy_term_reference.instance_settings: ++ type: mapping ++ label: 'Taxonomy term reference settings' ++ mapping: ++ user_register_form: ++ type: boolean ++ label: 'Display on user registration form.' ++ ++field.taxonomy_term_reference.value: ++ type: sequence ++ label: 'Default values' ++ sequence: ++ - type: mapping ++ label: 'Default value' ++ mapping: ++ tid: ++ type: integer ++ label: 'Term ID' ++ diff --git a/patches/250114/2102477.13.patch b/patches/250114/2102477.13.patch new file mode 100644 index 0000000..028eb31 --- /dev/null +++ b/patches/250114/2102477.13.patch @@ -0,0 +1,339 @@ +diff --git a/core/modules/language/config/language.types.yml b/core/modules/language/config/language.types.yml +index 2b77d89..41dc882 100644 +--- a/core/modules/language/config/language.types.yml ++++ b/core/modules/language/config/language.types.yml +@@ -4,3 +4,14 @@ all: + - language_url + configurable: + - language_interface ++settings: ++ language_content: ++ enabled: ++ language-interface: 0 ++ language_url: ++ enabled: ++ language-url: 0 ++ language-url-fallback: 1 ++ language_interface: ++ enabled: ++ language-url: 0 +diff --git a/core/modules/language/config/schema/language.schema.yml b/core/modules/language/config/schema/language.schema.yml +index ab74403..730ce62 100644 +--- a/core/modules/language/config/schema/language.schema.yml ++++ b/core/modules/language/config/schema/language.schema.yml +@@ -1,5 +1,22 @@ + # Schema for the configuration files of the Language module. + ++language_type_setting: ++ type: mapping ++ label: 'Language type setting' ++ mapping: ++ enabled: ++ type: sequence ++ label: 'Enabled methods' ++ sequence: ++ - type: integer ++ label: Weight ++ method_weights: ++ type: sequence ++ label: 'Method weights' ++ sequence: ++ - type: integer ++ label: Weight ++ + language.types: + type: mapping + label: 'Language types' +@@ -16,6 +33,12 @@ language.types: + sequence: + - type: string + label: 'Language type' ++ settings: ++ type: sequence ++ label: 'Language type settings' ++ sequence: ++ - type: language_type_setting ++ label: 'Language type setting' + + language.negotiation: + type: mapping +diff --git a/core/modules/language/language.install b/core/modules/language/language.install +index 3738831..a22fac8 100644 +--- a/core/modules/language/language.install ++++ b/core/modules/language/language.install +@@ -5,29 +5,6 @@ + * Install, update and uninstall functions for the language module. + */ + +-use Drupal\Core\Language\Language; +-use Drupal\language\ConfigurableLanguageManagerInterface; +-use Drupal\language\Plugin\LanguageNegotiation\LanguageNegotiationUrl; +- +-/** +- * Implements hook_install(). +- * +- * Enable URL language negotiation by default in order to have a basic working +- * system on multilingual sites without needing any preliminary configuration. +- */ +-function language_install() { +- $language_manager = \Drupal::languageManager(); +- if ($language_manager instanceof ConfigurableLanguageManagerInterface) { +- $negotiator = \Drupal::service('language_negotiator'); +- $types = $language_manager->getLanguageTypes(); +- $negotiator->updateConfiguration($types); +- // Enable URL language detection for each configurable language type. +- foreach ($types as $type) { +- $negotiator->saveConfiguration($type, array(LanguageNegotiationUrl::METHOD_ID => 0)); +- } +- } +-} +- + /** + * Implements hook_uninstall(). + */ +@@ -35,12 +12,6 @@ function language_uninstall() { + // Clear variables. + variable_del('language_default'); + +- // Clear variables. +- foreach (\Drupal::languageManager()->getDefinedLanguageTypes() as $type) { +- variable_del("language_negotiation_$type"); +- variable_del("language_negotiation_methods_weight_$type"); +- } +- + // Re-initialize the language system so successive calls to t() and other + // functions will not expect languages to be present. + drupal_language_initialize(); +diff --git a/core/modules/language/lib/Drupal/language/ConfigurableLanguageManager.php b/core/modules/language/lib/Drupal/language/ConfigurableLanguageManager.php +index 49c7ea4..1e2615f 100644 +--- a/core/modules/language/lib/Drupal/language/ConfigurableLanguageManager.php ++++ b/core/modules/language/lib/Drupal/language/ConfigurableLanguageManager.php +@@ -174,8 +174,15 @@ public function getDefinedLanguageTypesInfo() { + /** + * Stores language types configuration. + */ +- public function saveLanguageTypesConfiguration(array $config) { +- $this->configFactory->get('language.types')->setData($config)->save(); ++ public function saveLanguageTypesConfiguration(array $values) { ++ $config = $this->configFactory->get('language.types'); ++ if (isset($values['configurable'])) { ++ $config->set('configurable', $values['configurable']); ++ } ++ if (isset($values['all'])) { ++ $config->set('all', $values['all']); ++ } ++ $config->save(); + } + + /** +diff --git a/core/modules/language/lib/Drupal/language/Form/NegotiationConfigureForm.php b/core/modules/language/lib/Drupal/language/Form/NegotiationConfigureForm.php +index c5b2a66..29525e9 100644 +--- a/core/modules/language/lib/Drupal/language/Form/NegotiationConfigureForm.php ++++ b/core/modules/language/lib/Drupal/language/Form/NegotiationConfigureForm.php +@@ -150,8 +150,7 @@ public function submitForm(array &$form, array &$form_state) { + } + + $method_weights_type[$type] = $method_weights; +- // @todo convert this to config. +- variable_set("language_negotiation_methods_weight_$type", $method_weights_input); ++ $this->config('language.types')->set('settings.' . $type . '.method_weights', $method_weights_input)->save(); + } + + // Update non-configurable language types and the related language +@@ -213,8 +212,8 @@ protected function configureFormTable(array &$form, $type) { + } + + $negotiation_info = $form['#language_negotiation_info']; +- $enabled_methods = variable_get("language_negotiation_$type", array()); +- $methods_weight = variable_get("language_negotiation_methods_weight_$type", array()); ++ $enabled_methods = $this->config('language.types')->get('settings.' . $type . '.enabled') ?: array(); ++ $methods_weight = $this->config('language.types')->get('settings.' . $type . '.method_weights') ?: array(); + + // Add missing data to the methods lists. + foreach ($negotiation_info as $method_id => $method) { +diff --git a/core/modules/language/lib/Drupal/language/LanguageNegotiator.php b/core/modules/language/lib/Drupal/language/LanguageNegotiator.php +index f2a74f6..e090ea4 100644 +--- a/core/modules/language/lib/Drupal/language/LanguageNegotiator.php ++++ b/core/modules/language/lib/Drupal/language/LanguageNegotiator.php +@@ -36,7 +36,7 @@ class LanguageNegotiator implements LanguageNegotiatorInterface { + /** + * The configuration factory. + * +- * @var \Drupal\Core\Config\config ++ * @var \Drupal\Core\Config\ConfigFactory + */ + protected $configFactory; + +@@ -138,7 +138,7 @@ public function initializeType($type) { + if ($this->currentUser && $this->request) { + // Execute the language negotiation methods in the order they were set up + // and return the first valid language found. +- foreach ($this->getConfiguration($type) as $method_id => $info) { ++ foreach ($this->getEnabledMethods($type) as $method_id => $info) { + if (!isset($this->negotiatedLanguages[$method_id])) { + $this->negotiatedLanguages[$method_id] = $this->negotiateLanguage($type, $method_id); + } +@@ -166,13 +166,16 @@ public function initializeType($type) { + } + + /** +- * {@inheritdoc} ++ * Gets enabled detection methods for the provided language type. ++ * ++ * @param string $type ++ * The language type. ++ * ++ * @return array ++ * An array of enabled detection methods for the provided language type. + */ +- protected function getConfiguration($type) { +- // @todo convert to CMI https://drupal.org/node/1827038 and +- // https://drupal.org/node/2102477 +- drupal_bootstrap(DRUPAL_BOOTSTRAP_VARIABLES, FALSE); +- return variable_get("language_negotiation_$type", array()); ++ protected function getEnabledMethods($type) { ++ return $this->configFactory->get('language.types')->get('settings.' . $type . '.enabled') ?: array(); + } + + /** +@@ -218,8 +221,8 @@ protected function negotiateLanguage($type, $method_id) { + public function getNegotiationMethods($type = NULL) { + $definitions = $this->negotiatorManager->getDefinitions(); + if (isset($type)) { +- $config = $this->getConfiguration($type); +- $definitions = array_intersect_key($definitions, $config); ++ $enabled_methods = $this->getEnabledMethods($type); ++ $definitions = array_intersect_key($definitions, $enabled_methods); + } + return $definitions; + } +@@ -242,8 +245,8 @@ public function getNegotiationMethodInstance($method_id) { + * {@inheritdoc} + */ + public function getPrimaryNegotiationMethod($type) { +- $config = $this->getConfiguration($type); +- return empty($config) ? LanguageNegotiatorInterface::METHOD_ID : key($config); ++ $enabled_methods = $this->getEnabledMethods($type); ++ return empty($enabled_methods) ? LanguageNegotiatorInterface::METHOD_ID : key($enabled_methods); + } + + /** +@@ -254,8 +257,8 @@ public function isNegotiationMethodEnabled($method_id, $type = NULL) { + $language_types = !empty($type) ? array($type) : $this->languageManager->getLanguageTypes(); + + foreach ($language_types as $type) { +- $config = $this->getConfiguration($type); +- if (isset($config[$method_id])) { ++ $enabled_methods = $this->getEnabledMethods($type); ++ if (isset($enabled_methods['$method_id'])) { + $enabled = TRUE; + break; + } +@@ -267,13 +270,13 @@ public function isNegotiationMethodEnabled($method_id, $type = NULL) { + /** + * {@inheritdoc} + */ +- function saveConfiguration($type, $method_weights) { ++ function saveConfiguration($type, $enabled_methods) { + $definitions = $this->getNegotiationMethods(); + $default_types = $this->languageManager->getLanguageTypes(); + + // Order the language negotiation method list by weight. +- asort($method_weights); +- foreach ($method_weights as $method_id => $weight) { ++ asort($enabled_methods); ++ foreach ($enabled_methods as $method_id => $weight) { + if (isset($definitions[$method_id])) { + $method = $definitions[$method_id]; + // If the language negotiation method does not express any preference +@@ -281,15 +284,14 @@ function saveConfiguration($type, $method_weights) { + $types = array_flip(!empty($method['types']) ? $method['types'] : $default_types); + // Check whether the method is defined and has the right type. + if (!isset($types[$type])) { +- unset($method_weights[$method_id]); ++ unset($enabled_methods[$method_id]); + } + } + else { +- unset($method_weights[$method_id]); ++ unset($enabled_methods[$method_id]); + } + } +- +- variable_set("language_negotiation_$type", $method_weights); ++ $this->configFactory->get('language.types')->set('settings.' . $type . '.enabled', $enabled_methods)->save(); + } + + /** +@@ -303,7 +305,7 @@ function purgeConfiguration() { + $this->negotiatorManager->clearCachedDefinitions(); + $this->languageManager->reset(); + foreach ($this->languageManager->getDefinedLanguageTypesInfo() as $type => $info) { +- $this->saveConfiguration($type, $this->getConfiguration($type)); ++ $this->saveConfiguration($type, $this->getEnabledMethods($type)); + } + } + +diff --git a/core/modules/language/lib/Drupal/language/LanguageNegotiatorInterface.php b/core/modules/language/lib/Drupal/language/LanguageNegotiatorInterface.php +index 0654fde..d12fd6f 100644 +--- a/core/modules/language/lib/Drupal/language/LanguageNegotiatorInterface.php ++++ b/core/modules/language/lib/Drupal/language/LanguageNegotiatorInterface.php +@@ -196,10 +196,10 @@ public function isNegotiationMethodEnabled($method_id, $type = NULL); + * + * @param string $type + * The language type. +- * @param array $method_weights ++ * @param array $enabled_methods + * An array of language negotiation method weights keyed by method ID. + */ +- function saveConfiguration($type, $method_weights); ++ function saveConfiguration($type, $enabled_methods); + + /** + * Resave the configuration to purge missing negotiation methods. +diff --git a/core/modules/language/lib/Drupal/language/Tests/LanguageNegotiationInfoTest.php b/core/modules/language/lib/Drupal/language/Tests/LanguageNegotiationInfoTest.php +index 471dab2..b15522c 100644 +--- a/core/modules/language/lib/Drupal/language/Tests/LanguageNegotiationInfoTest.php ++++ b/core/modules/language/lib/Drupal/language/Tests/LanguageNegotiationInfoTest.php +@@ -91,7 +91,7 @@ function testInfoAlterations() { + // negotiation settings with the proper flag enabled. + \Drupal::state()->set('language_test.language_negotiation_info_alter', TRUE); + $this->languageNegotiationUpdate(); +- $negotiation = variable_get("language_negotiation_$type", array()); ++ $negotiation = \Drupal::config('language.types')->get('settings.' . $type . '.enabled') ?: array(); + $this->assertFalse(isset($negotiation[$interface_method_id]), 'Interface language negotiation method removed from the stored settings.'); + $this->assertNoFieldByXPath("//input[@name=\"$form_field\"]", NULL, 'Interface language negotiation method unavailable.'); + +@@ -131,7 +131,7 @@ function testInfoAlterations() { + + // Check that unavailable language negotiation methods are not present in + // the negotiation settings. +- $negotiation = variable_get("language_negotiation_$type", array()); ++ $negotiation = \Drupal::config('language.types')->get('settings.' . $type . '.enabled') ?: array(); + $this->assertFalse(isset($negotiation[$test_method_id]), 'The disabled test language negotiation method is not part of the content language negotiation settings.'); + + // Check that configuration page presents the correct options and settings. +@@ -173,7 +173,7 @@ protected function checkFixedLanguageTypes() { + $configurable = $this->languageManager->getLanguageTypes(); + foreach ($this->languageManager->getDefinedLanguageTypesInfo() as $type => $info) { + if (!in_array($type, $configurable) && isset($info['fixed'])) { +- $negotiation = variable_get("language_negotiation_$type", array()); ++ $negotiation = \Drupal::config('language.types')->get('settings.' . $type . '.enabled') ?: array(); + $equal = count($info['fixed']) == count($negotiation); + while ($equal && list($id) = each($negotiation)) { + list(, $info_id) = each($info['fixed']); +diff --git a/core/modules/language/lib/Drupal/language/Tests/LanguageUILanguageNegotiationTest.php b/core/modules/language/lib/Drupal/language/Tests/LanguageUILanguageNegotiationTest.php +index 1a07175..3bae013 100644 +--- a/core/modules/language/lib/Drupal/language/Tests/LanguageUILanguageNegotiationTest.php ++++ b/core/modules/language/lib/Drupal/language/Tests/LanguageUILanguageNegotiationTest.php +@@ -238,7 +238,9 @@ function testUILanguageNegotiation() { + + // Unknown language prefix should return 404. + $definitions = \Drupal::languageManager()->getNegotiator()->getNegotiationMethods(); +- variable_set('language_negotiation_' . Language::TYPE_INTERFACE, array_flip(array_keys($definitions))); ++ \Drupal::config('language.types') ++ ->set('settings.' . Language::TYPE_INTERFACE . '.enabled', array_flip(array_keys($definitions))) ++ ->save(); + $this->drupalGet("$langcode_unknown/admin/config", array(), $http_header_browser_fallback); + $this->assertResponse(404, "Unknown language path prefix should return 404"); + diff --git a/patches/drupal-mobile/core-module_page-details-1893072-20.patch b/patches/drupal-mobile/core-module_page-details-1893072-20.patch new file mode 100644 index 0000000..05120d7 --- /dev/null +++ b/patches/drupal-mobile/core-module_page-details-1893072-20.patch @@ -0,0 +1,184 @@ +diff --git a/core/modules/system/css/system.admin.css b/core/modules/system/css/system.admin.css +index b0c893c..65e6daa 100644 +--- a/core/modules/system/css/system.admin.css ++++ b/core/modules/system/css/system.admin.css +@@ -73,38 +73,45 @@ small .admin-link:after { + #system-modules td { + vertical-align: top; + } +-#system-modules .expand .inner { +- background: transparent url(../../../misc/menu-collapsed.png) left .6em no-repeat; +- margin-left: -12px; +- padding-left: 12px; +-} +-#system-modules .expanded .expand .inner { +- background: transparent url(../../../misc/menu-expanded.png) left .6em no-repeat; +-} + #system-modules label { + color: #1d1d1d; + font-size: 1.15em; + } +-#system-modules .description { +- cursor: pointer; +-} +-#system-modules .description .inner { ++#system-modules details { + color: #5c5c5b; +- height: 20px; + line-height: 20px; + overflow: hidden; /* truncates descriptions if too long */ + text-overflow: ellipsis; + white-space: nowrap; + } +-#system-modules .expanded .description .inner { ++#system-modules details[open] { + height: auto; + overflow: visible; + white-space: normal; + } +-#system-modules .expanded .description .text { ++#system-modules details[open] summary .text { + -webkit-hyphens: auto; + -moz-hyphens: auto; + hyphens: auto; ++ text-transform: none; ++} ++#system-modules td details a { ++ color: #5C5C5B; ++ border: 0px; ++} ++#system-modules td details { ++ border: 0px; ++ margin: 0px; ++ height: 20px; ++} ++#system-modules td details summary { ++ padding: 0px; ++ text-transform: none; ++ font-weight: normal; ++ cursor: default; ++} ++#system-modules td { ++ padding-left: 0px; + } + + @media screen and (max-width: 40em) { +diff --git a/core/modules/system/system.admin.inc b/core/modules/system/system.admin.inc +index 957db86..508e096 100644 +--- a/core/modules/system/system.admin.inc ++++ b/core/modules/system/system.admin.inc +@@ -509,6 +509,7 @@ function system_modules($form, $form_state = array()) { + array('data' => t('Name'), 'class' => array('name')), + array('data' => t('Description'), 'class' => array('description', RESPONSIVE_PRIORITY_LOW)), + ), ++ '#attributes' => array('class' => array('package-listing')), + // Ensure that the "Core" package comes first. + '#weight' => $package == 'Core' ? -10 : NULL, + ); +@@ -1162,7 +1163,7 @@ function theme_system_modules_details($variables) { + $row[] = array('class' => array('module'), 'data' => $col2); + + // Add the description, along with any modules it requires. +- $description = '' . drupal_render($module['description']) . ''; ++ $description = ''; + if ($version || $requires || $required_by) { + $description .= '
'; + if ($version) { +@@ -1185,7 +1186,14 @@ function theme_system_modules_details($variables) { + $description .= $links; + $description .= '
'; + } +- $col4 = '
Show description ' . $description . '
'; ++ $details = array( ++ '#type' => 'details', ++ '#title' => ' ' . drupal_render($module['description']) . '', ++ '#attributes' => array('id' => $module['enable']['#id'] . '-description'), ++ '#description' => $description, ++ '#collapsed' => TRUE, ++ ); ++ $col4 = drupal_render($details); + $row[] = array('class' => array('description', 'expand'), 'data' => $col4); + + $rows[] = $row; +diff --git a/core/modules/system/system.modules.js b/core/modules/system/system.modules.js +index 1efe863..4d97652 100644 +--- a/core/modules/system/system.modules.js ++++ b/core/modules/system/system.modules.js +@@ -2,68 +2,6 @@ + + "use strict"; + +-$.extend(Drupal.settings, { +- hideModules: { +- method: 'toggle', +- duration: 0 +- } +-}); +- +-/** +- * Show/hide the requirements information on modules page. +- */ +-Drupal.behaviors.hideModuleInformation = { +- attach: function (context, settings) { +- var $table = $('#system-modules').once('expand-modules'); +- var effect = settings.hideModules; +- if ($table.length) { +- var $tbodies = $table.find('tbody'); +- +- // Fancy animating. +- $tbodies.on('click keydown', '.description', function (e) { +- if (e.keyCode && (e.keyCode !== 13 && e.keyCode !== 32)) { +- return; +- } +- e.preventDefault(); +- var $tr = $(this).closest('tr'); +- var $toggleElements = $tr.find('.requirements, .links'); +- +- $toggleElements[effect.method](effect.duration) +- .promise().done(function() { +- $tr.toggleClass('expanded'); +- }); +- +- // Change screen reader text. +- $tr.find('.module-description-prefix').text(function () { +- if ($tr.hasClass('expanded')) { +- return Drupal.t('Hide description'); +- } +- else { +- return Drupal.t('Show description'); +- } +- }); +- }); +- // Makes the whole cell a click target. +- $tbodies.on('click', 'td.checkbox', function (e) { +- e.stopPropagation(); +- var input = $(this).find('input').get(0); +- if (!input.readOnly && !input.disabled) { +- input.checked = !input.checked; +- } +- }); +- // Catch the event on the checkbox to avoid triggering previous handler. +- $tbodies.on('click', 'input', function (e) { +- e.stopPropagation(); +- }); +- // Don't close the row when clicking a link in the description. +- $tbodies.on('click', '.description a', function (e) { +- e.stopPropagation(); +- }); +- } +- $table.find('.requirements, .links').hide(); +- } +-}; +- + /** + * Filters the module list table by a text input search string. + * +@@ -112,7 +50,7 @@ Drupal.behaviors.tableFilterByText = { + if ($table.length) { + $rowsAndDetails = $table.find('tr, details'); + $rows = $table.find('tbody tr'); +- $details = $table.find('details'); ++ $details = $rowsAndDetails.filter('.package-listing'); + + $input.on('keyup', filterModuleList); + } diff --git a/sites/default/files/.htaccess b/sites/default/files/.htaccess new file mode 100644 index 0000000..189ef8d --- /dev/null +++ b/sites/default/files/.htaccess @@ -0,0 +1,3 @@ +SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006 +Options None +Options +FollowSymLinks \ No newline at end of file diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/.htaccess b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/.htaccess new file mode 100644 index 0000000..8d2ad47 --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/.htaccess @@ -0,0 +1,4 @@ +SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006 +Deny from all +Options None +Options +FollowSymLinks \ No newline at end of file diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/README.txt b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/README.txt new file mode 100644 index 0000000..12eb831 --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/README.txt @@ -0,0 +1 @@ +This directory contains the active configuration for your Drupal site. To move this configuration between environments, contents from this directory should be placed in the staging directory on the target server. To make this configuration active, see admin/config/development/configuration/sync on the target server. For information about deploying configuration between servers, see http://drupal.org/documentation/administer/config \ No newline at end of file diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/bartik.settings.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/bartik.settings.yml new file mode 100644 index 0000000..67537ae --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/bartik.settings.yml @@ -0,0 +1 @@ +shortcut_module_link: '0' diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/block.block.bartik_breadcrumbs.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/block.block.bartik_breadcrumbs.yml new file mode 100644 index 0000000..6d353e1 --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/block.block.bartik_breadcrumbs.yml @@ -0,0 +1,24 @@ +id: bartik_breadcrumbs +uuid: a29e843f-d19c-4528-ab02-2fc335e12b1e +weight: -5 +status: false +langcode: en +theme: bartik +region: '-1' +plugin: system_breadcrumb_block +settings: + label: Breadcrumbs + module: system + label_display: '0' + cache: -1 +visibility: + path: + visibility: 0 + pages: '' + role: + roles: { } + node_type: + types: + article: '0' + page: '0' + visibility__active_tab: edit-visibility-path diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/block.block.bartik_content.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/block.block.bartik_content.yml new file mode 100644 index 0000000..2658958 --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/block.block.bartik_content.yml @@ -0,0 +1,24 @@ +id: bartik_content +uuid: 2cab5a0c-de08-4b5c-9700-f0243a6fb000 +weight: 0 +status: true +langcode: en +theme: bartik +region: content +plugin: system_main_block +settings: + label: 'Main page content' + module: system + label_display: '0' + cache: -1 +visibility: + path: + visibility: 0 + pages: '' + role: + roles: { } + node_type: + types: + article: '0' + page: '0' + visibility__active_tab: edit-visibility-path diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/block.block.bartik_footer.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/block.block.bartik_footer.yml new file mode 100644 index 0000000..cf499a5 --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/block.block.bartik_footer.yml @@ -0,0 +1,24 @@ +id: bartik_footer +uuid: a6c75fc2-5ca1-403e-ab37-557c7244e8c0 +weight: 0 +status: true +langcode: en +theme: bartik +region: footer +plugin: 'system_menu_block:footer' +settings: + label: 'Footer menu' + module: system + label_display: visible + cache: -1 +visibility: + path: + visibility: 0 + pages: '' + role: + roles: { } + node_type: + types: + article: '0' + page: '0' + visibility__active_tab: edit-visibility-path diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/block.block.bartik_help.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/block.block.bartik_help.yml new file mode 100644 index 0000000..c00b55d --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/block.block.bartik_help.yml @@ -0,0 +1,24 @@ +id: bartik_help +uuid: 6ea8e05a-6793-4ecf-8801-015dc6e1013e +weight: 0 +status: true +langcode: en +theme: bartik +region: help +plugin: system_help_block +settings: + label: 'System Help' + module: system + label_display: '0' + cache: -1 +visibility: + path: + visibility: 0 + pages: '' + role: + roles: { } + node_type: + types: + article: '0' + page: '0' + visibility__active_tab: edit-visibility-path diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/block.block.bartik_login.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/block.block.bartik_login.yml new file mode 100644 index 0000000..3553141 --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/block.block.bartik_login.yml @@ -0,0 +1,24 @@ +id: bartik_login +uuid: 961f4152-3e91-4c9f-9114-20a5375675d0 +weight: 0 +status: true +langcode: en +theme: bartik +region: sidebar_first +plugin: user_login_block +settings: + label: 'User login' + module: user + label_display: visible + cache: -1 +visibility: + path: + visibility: 0 + pages: '' + role: + roles: { } + node_type: + types: + article: '0' + page: '0' + visibility__active_tab: edit-visibility-path diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/block.block.bartik_powered.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/block.block.bartik_powered.yml new file mode 100644 index 0000000..7ed2acc --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/block.block.bartik_powered.yml @@ -0,0 +1,24 @@ +id: bartik_powered +uuid: 37cff101-27dc-478d-9d00-b58b9d884039 +weight: 10 +status: true +langcode: en +theme: bartik +region: footer +plugin: system_powered_by_block +settings: + label: 'Powered by Drupal' + module: system + label_display: '0' + cache: -1 +visibility: + path: + visibility: 0 + pages: '' + role: + roles: { } + node_type: + types: + article: '0' + page: '0' + visibility__active_tab: edit-visibility-path diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/block.block.bartik_search.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/block.block.bartik_search.yml new file mode 100644 index 0000000..6323b27 --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/block.block.bartik_search.yml @@ -0,0 +1,24 @@ +id: bartik_search +uuid: 51f70058-a370-4410-9000-a65488d00e6c +weight: -1 +status: true +langcode: en +theme: bartik +region: sidebar_first +plugin: search_form_block +settings: + label: Search + module: search + label_display: visible + cache: -1 +visibility: + path: + visibility: 0 + pages: '' + role: + roles: { } + node_type: + types: + article: '0' + page: '0' + visibility__active_tab: edit-visibility-path diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/block.block.bartik_tools.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/block.block.bartik_tools.yml new file mode 100644 index 0000000..2d5d1a3 --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/block.block.bartik_tools.yml @@ -0,0 +1,24 @@ +id: bartik_tools +uuid: 0dca3209-c6fa-4043-a407-7afb952cfc5e +weight: 0 +status: true +langcode: en +theme: bartik +region: sidebar_first +plugin: 'system_menu_block:tools' +settings: + label: Tools + module: system + label_display: visible + cache: -1 +visibility: + path: + visibility: 0 + pages: '' + role: + roles: { } + node_type: + types: + article: '0' + page: '0' + visibility__active_tab: edit-visibility-path diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/block.block.seven_breadcrumbs.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/block.block.seven_breadcrumbs.yml new file mode 100644 index 0000000..9a9b9fd --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/block.block.seven_breadcrumbs.yml @@ -0,0 +1,24 @@ +id: seven_breadcrumbs +uuid: f8d0d0fb-daf7-4c91-8a09-9cb643279f03 +weight: -2 +status: false +langcode: en +theme: seven +region: '-1' +plugin: system_breadcrumb_block +settings: + label: Breadcrumbs + module: system + label_display: '0' + cache: -1 +visibility: + path: + visibility: 0 + pages: '' + role: + roles: { } + node_type: + types: + article: '0' + page: '0' + visibility__active_tab: edit-visibility-path diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/block.block.seven_content.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/block.block.seven_content.yml new file mode 100644 index 0000000..e676ce4 --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/block.block.seven_content.yml @@ -0,0 +1,24 @@ +id: seven_content +uuid: 3c9e3337-e0f4-42c3-8a00-f1d8be09b0ea +weight: 0 +status: true +langcode: en +theme: seven +region: content +plugin: system_main_block +settings: + label: 'Main page content' + module: system + label_display: '0' + cache: -1 +visibility: + path: + visibility: 0 + pages: '' + role: + roles: { } + node_type: + types: + article: '0' + page: '0' + visibility__active_tab: edit-visibility-path diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/block.block.seven_help.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/block.block.seven_help.yml new file mode 100644 index 0000000..135fe8b --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/block.block.seven_help.yml @@ -0,0 +1,24 @@ +id: seven_help +uuid: 367d09b7-9638-4faf-bf07-7fe31b2226a0 +weight: 0 +status: true +langcode: en +theme: seven +region: help +plugin: system_help_block +settings: + label: 'System Help' + module: system + label_display: '0' + cache: -1 +visibility: + path: + visibility: 0 + pages: '' + role: + roles: { } + node_type: + types: + article: '0' + page: '0' + visibility__active_tab: edit-visibility-path diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/block.block.seven_login.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/block.block.seven_login.yml new file mode 100644 index 0000000..8da05fc --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/block.block.seven_login.yml @@ -0,0 +1,24 @@ +id: seven_login +uuid: 10a9888b-2247-408d-9702-2c0cc9cacba2 +weight: 10 +status: true +langcode: en +theme: seven +region: content +plugin: user_login_block +settings: + label: 'User login' + module: user + label_display: visible + cache: -1 +visibility: + path: + visibility: 0 + pages: '' + role: + roles: { } + node_type: + types: + article: '0' + page: '0' + visibility__active_tab: edit-visibility-path diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/breakpoint.breakpoint.module.toolbar.narrow.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/breakpoint.breakpoint.module.toolbar.narrow.yml new file mode 100644 index 0000000..3385cd1 --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/breakpoint.breakpoint.module.toolbar.narrow.yml @@ -0,0 +1,12 @@ +id: module.toolbar.narrow +uuid: cb5e5f7c-b443-4d0b-ae5e-948ba336a0cb +name: narrow +label: narrow +mediaQuery: 'only screen and (min-width: 16.5em)' +source: toolbar +sourceType: module +weight: '0' +multipliers: + 1x: 1x +status: true +langcode: en diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/breakpoint.breakpoint.module.toolbar.standard.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/breakpoint.breakpoint.module.toolbar.standard.yml new file mode 100644 index 0000000..7defae7 --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/breakpoint.breakpoint.module.toolbar.standard.yml @@ -0,0 +1,12 @@ +id: module.toolbar.standard +uuid: 19981d7a-2dc3-4b3f-be00-a4d8a7c12c07 +name: standard +label: standard +mediaQuery: 'only screen and (min-width: 38.125em)' +source: toolbar +sourceType: module +weight: '1' +multipliers: + 1x: 1x +status: true +langcode: en diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/breakpoint.breakpoint.module.toolbar.wide.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/breakpoint.breakpoint.module.toolbar.wide.yml new file mode 100644 index 0000000..72b432e --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/breakpoint.breakpoint.module.toolbar.wide.yml @@ -0,0 +1,12 @@ +id: module.toolbar.wide +uuid: 8797545b-0b39-493d-8c00-b4ae721bf447 +name: wide +label: wide +mediaQuery: 'only screen and (min-width: 52em)' +source: toolbar +sourceType: module +weight: '2' +multipliers: + 1x: 1x +status: true +langcode: en diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/breakpoint.breakpoint.theme.bartik.mobile.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/breakpoint.breakpoint.theme.bartik.mobile.yml new file mode 100644 index 0000000..540e5c5 --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/breakpoint.breakpoint.theme.bartik.mobile.yml @@ -0,0 +1,12 @@ +id: theme.bartik.mobile +uuid: 676e11ac-c254-415a-881c-28786167ed69 +name: mobile +label: mobile +mediaQuery: '(min-width: 0px)' +source: bartik +sourceType: theme +weight: '0' +multipliers: + 1x: 1x +status: true +langcode: en diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/breakpoint.breakpoint.theme.bartik.narrow.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/breakpoint.breakpoint.theme.bartik.narrow.yml new file mode 100644 index 0000000..c28abcd --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/breakpoint.breakpoint.theme.bartik.narrow.yml @@ -0,0 +1,12 @@ +id: theme.bartik.narrow +uuid: da7ce8eb-f006-4a2f-8557-87ac4f62d5cd +name: narrow +label: narrow +mediaQuery: 'all and (min-width: 560px) and (max-width: 850px)' +source: bartik +sourceType: theme +weight: '1' +multipliers: + 1x: 1x +status: true +langcode: en diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/breakpoint.breakpoint.theme.bartik.wide.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/breakpoint.breakpoint.theme.bartik.wide.yml new file mode 100644 index 0000000..684b28f --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/breakpoint.breakpoint.theme.bartik.wide.yml @@ -0,0 +1,12 @@ +id: theme.bartik.wide +uuid: 42288274-fd42-49cc-bb0d-131c13e2b46b +name: wide +label: wide +mediaQuery: 'all and (min-width: 851px)' +source: bartik +sourceType: theme +weight: '2' +multipliers: + 1x: 1x +status: true +langcode: en diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/breakpoint.breakpoint_group.module.toolbar.toolbar.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/breakpoint.breakpoint_group.module.toolbar.toolbar.yml new file mode 100644 index 0000000..4d09153 --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/breakpoint.breakpoint_group.module.toolbar.toolbar.yml @@ -0,0 +1,12 @@ +id: module.toolbar.toolbar +uuid: 03945598-b3ae-4ea7-ad25-375b52f6f0a4 +name: toolbar +label: toolbar +breakpoint_ids: + - module.toolbar.narrow + - module.toolbar.standard + - module.toolbar.wide +source: toolbar +sourceType: module +status: true +langcode: en diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/breakpoint.breakpoint_group.theme.bartik.bartik.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/breakpoint.breakpoint_group.theme.bartik.bartik.yml new file mode 100644 index 0000000..9ae2b82 --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/breakpoint.breakpoint_group.theme.bartik.bartik.yml @@ -0,0 +1,12 @@ +id: theme.bartik.bartik +uuid: 7f6492dc-028c-47e9-bb00-c280cc21586c +name: bartik +label: Bartik +breakpoint_ids: + - theme.bartik.mobile + - theme.bartik.narrow + - theme.bartik.wide +source: bartik +sourceType: theme +status: true +langcode: en diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/contact.category.feedback.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/contact.category.feedback.yml new file mode 100644 index 0000000..c437190 --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/contact.category.feedback.yml @@ -0,0 +1,9 @@ +id: feedback +uuid: 29821a98-2498-4161-8d00-e4dba46dd1e8 +label: 'Website feedback' +recipients: + - '' +reply: '' +weight: 0 +status: true +langcode: en diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/contact.category.personal.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/contact.category.personal.yml new file mode 100644 index 0000000..c41cc94 --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/contact.category.personal.yml @@ -0,0 +1,8 @@ +id: personal +uuid: 4520a81c-a103-4b4d-b000-e95741044672 +label: 'Personal contact form' +recipients: { } +reply: '' +weight: 0 +status: true +langcode: en diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/contact.settings.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/contact.settings.yml new file mode 100644 index 0000000..28c760a --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/contact.settings.yml @@ -0,0 +1,5 @@ +default_category: feedback +flood: + limit: 5 + interval: 3600 +user_default_enabled: true diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/custom_block.type.basic.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/custom_block.type.basic.yml new file mode 100644 index 0000000..5815a7a --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/custom_block.type.basic.yml @@ -0,0 +1,7 @@ +id: basic +uuid: 4bcdec7a-c867-404b-855d-939a11420b12 +label: 'Basic block' +revision: 0 +description: 'A basic block contains a title and a body.' +status: true +langcode: en diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/dblog.settings.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/dblog.settings.yml new file mode 100644 index 0000000..88add88 --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/dblog.settings.yml @@ -0,0 +1 @@ +row_limit: 1000 diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/editor.editor.basic_html.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/editor.editor.basic_html.yml new file mode 100644 index 0000000..155c5fb --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/editor.editor.basic_html.yml @@ -0,0 +1,43 @@ +format: basic_html +editor: ckeditor +settings: + toolbar: + rows: + - + - + name: Formatting + items: + - Bold + - Italic + - + name: Linking + items: + - DrupalLink + - DrupalUnlink + - + name: Lists + items: + - BulletedList + - NumberedList + - + name: Media + items: + - Blockquote + - DrupalImage + - + name: Tools + items: + - Source + plugins: + stylescombo: + styles: '' +image_upload: + status: true + scheme: public + directory: inline-images + max_size: '' + max_dimensions: + width: 0 + height: 0 +status: true +langcode: en diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/editor.editor.full_html.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/editor.editor.full_html.yml new file mode 100644 index 0000000..7c94af1 --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/editor.editor.full_html.yml @@ -0,0 +1,55 @@ +format: full_html +editor: ckeditor +settings: + toolbar: + rows: + - + - + name: Formatting + items: + - Bold + - Italic + - Strike + - Superscript + - Subscript + - '-' + - RemoveFormat + - + name: Linking + items: + - DrupalLink + - DrupalUnlink + - + name: Lists + items: + - BulletedList + - NumberedList + - + name: Media + items: + - Blockquote + - DrupalImage + - Table + - HorizontalRule + - + name: 'Block Formatting' + items: + - Format + - + name: Tools + items: + - ShowBlocks + - Source + plugins: + stylescombo: + styles: '' +image_upload: + status: true + scheme: public + directory: inline-images + max_size: '' + max_dimensions: + width: 0 + height: 0 +status: true +langcode: en diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.display.comment.node__comment.default.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.display.comment.node__comment.default.yml new file mode 100644 index 0000000..f1cb4b9 --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.display.comment.node__comment.default.yml @@ -0,0 +1,13 @@ +id: comment.node__comment.default +uuid: b1288a98-bce1-4fd9-8700-b0071d9c8472 +targetEntityType: comment +bundle: node__comment +mode: default +content: + comment_body: + label: hidden + type: text_default + weight: 0 + settings: { } +hidden: { } +status: true diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.display.custom_block.basic.default.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.display.custom_block.basic.default.yml new file mode 100644 index 0000000..c370964 --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.display.custom_block.basic.default.yml @@ -0,0 +1,13 @@ +id: custom_block.basic.default +uuid: af3f65f0-afcf-496c-b647-71761c57f153 +targetEntityType: custom_block +bundle: basic +mode: default +content: + body: + label: hidden + type: text_default + weight: 0 + settings: { } +hidden: { } +status: true diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.display.node.article.default.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.display.node.article.default.yml new file mode 100644 index 0000000..8c924c5 --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.display.node.article.default.yml @@ -0,0 +1,32 @@ +id: node.article.default +uuid: 3ca9876e-7b93-48bd-8f00-b4ce293ad554 +targetEntityType: node +bundle: article +mode: default +content: + field_image: + label: hidden + type: image + settings: + image_style: large + image_link: '' + weight: '-1' + field_tags: + type: taxonomy_term_reference_link + weight: '10' + label: above + settings: { } + body: + label: hidden + type: text_default + weight: 11 + settings: { } + comment: + label: hidden + type: comment_default + weight: 20 + settings: + pager_id: 0 +hidden: + langcode: true +status: 1 diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.display.node.article.teaser.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.display.node.article.teaser.yml new file mode 100644 index 0000000..d5c1e17 --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.display.node.article.teaser.yml @@ -0,0 +1,27 @@ +id: node.article.teaser +uuid: 7156f406-c67c-4d1f-bd35-53dbf20ee7e4 +targetEntityType: node +bundle: article +mode: teaser +content: + field_image: + label: hidden + type: image + settings: + image_style: medium + image_link: content + weight: '-1' + field_tags: + type: taxonomy_term_reference_link + weight: '10' + label: above + settings: { } + body: + label: hidden + type: text_summary_or_trimmed + weight: 11 + settings: + trim_length: '600' +hidden: + langcode: true +status: 1 diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.display.node.page.default.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.display.node.page.default.yml new file mode 100644 index 0000000..7c21e88 --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.display.node.page.default.yml @@ -0,0 +1,14 @@ +id: node.page.default +uuid: 9aef66fe-6664-48cd-b000-b37214ed6ac0 +targetEntityType: node +bundle: page +mode: default +content: + body: + label: hidden + type: text_default + weight: -4 + settings: { } +hidden: + langcode: true +status: true diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.display.node.page.teaser.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.display.node.page.teaser.yml new file mode 100644 index 0000000..29aca1e --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.display.node.page.teaser.yml @@ -0,0 +1,15 @@ +id: node.page.teaser +uuid: 8e5f9cf0-b12a-4bf9-8b05-5bbd6b053a93 +targetEntityType: node +bundle: page +mode: teaser +content: + body: + label: hidden + type: text_summary_or_trimmed + weight: -4 + settings: + trim_length: '600' +hidden: + langcode: true +status: true diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.display.user.user.compact.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.display.user.user.compact.yml new file mode 100644 index 0000000..85b7992 --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.display.user.user.compact.yml @@ -0,0 +1,16 @@ +id: user.user.compact +uuid: 70911b08-bf47-4a3f-b400-f99cf136effd +targetEntityType: user +bundle: user +mode: compact +content: + user_picture: + label: hidden + type: image + settings: + image_style: thumbnail + image_link: content + weight: 0 +hidden: + member_for: true +status: true diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.display.user.user.default.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.display.user.user.default.yml new file mode 100644 index 0000000..2d065ba --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.display.user.user.default.yml @@ -0,0 +1,17 @@ +id: user.user.default +uuid: 7a60b270-a584-46dc-ba00-a510230e9f45 +targetEntityType: user +bundle: user +mode: default +content: + user_picture: + label: hidden + type: image + settings: + image_style: thumbnail + image_link: content + weight: 0 + member_for: + weight: 5 +hidden: { } +status: true diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.form_display.comment.node__comment.default.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.form_display.comment.node__comment.default.yml new file mode 100644 index 0000000..5924b5c --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.form_display.comment.node__comment.default.yml @@ -0,0 +1,18 @@ +id: comment.node__comment.default +uuid: fb0f987b-8c87-4908-8329-41c80b3d72b7 +targetEntityType: comment +bundle: node__comment +mode: default +content: + author: + weight: -2 + subject: + weight: -1 + comment_body: + type: text_textarea + weight: 0 + settings: + rows: '5' + placeholder: '' +hidden: { } +status: true diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.form_display.custom_block.basic.default.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.form_display.custom_block.basic.default.yml new file mode 100644 index 0000000..c609fa9 --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.form_display.custom_block.basic.default.yml @@ -0,0 +1,15 @@ +id: custom_block.basic.default +uuid: 9e9a7a03-157e-48bb-8205-5d8014b1929e +targetEntityType: custom_block +bundle: basic +mode: default +content: + body: + type: text_textarea_with_summary + weight: 0 + settings: + rows: '9' + summary_rows: '3' + placeholder: '' +hidden: { } +status: true diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.form_display.node.article.default.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.form_display.node.article.default.yml new file mode 100644 index 0000000..1c72612 --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.form_display.node.article.default.yml @@ -0,0 +1,38 @@ +id: node.article.default +uuid: 1756324d-52bd-499c-8b06-6d6a87ea71bd +targetEntityType: node +bundle: article +mode: default +content: + title: + type: text_textfield + weight: -5 + settings: + size: '60' + placeholder: '' + field_tags: + type: taxonomy_autocomplete + weight: '-4' + settings: + size: '60' + autocomplete_route_name: taxonomy.autocomplete + placeholder: '' + field_image: + type: image_image + settings: + progress_indicator: throbber + preview_image_style: thumbnail + weight: '-1' + body: + type: text_textarea_with_summary + weight: 1 + settings: + rows: '9' + summary_rows: '3' + placeholder: '' + comment: + type: comment_default + weight: 20 + settings: { } +hidden: { } +status: 1 diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.form_display.node.page.default.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.form_display.node.page.default.yml new file mode 100644 index 0000000..2418d0e --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.form_display.node.page.default.yml @@ -0,0 +1,21 @@ +id: node.page.default +uuid: 21707cb7-f111-4ba7-bd00-f14bbaa6bc0f +targetEntityType: node +bundle: page +mode: default +content: + title: + type: text_textfield + weight: -5 + settings: + size: '60' + placeholder: '' + body: + type: text_textarea_with_summary + weight: -4 + settings: + rows: '9' + summary_rows: '3' + placeholder: '' +hidden: { } +status: true diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.form_display.user.user.default.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.form_display.user.user.default.yml new file mode 100644 index 0000000..ec8bba0 --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.form_display.user.user.default.yml @@ -0,0 +1,22 @@ +id: user.user.default +uuid: 9a01a9bf-791b-4e46-8d32-50136be8596f +targetEntityType: user +bundle: user +mode: default +content: + account: + weight: -10 + user_picture: + type: image_image + settings: + progress_indicator: throbber + preview_image_style: thumbnail + weight: -1 + language: + weight: 0 + contact: + weight: 5 + timezone: + weight: 6 +hidden: { } +status: true diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.form_mode.user.register.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.form_mode.user.register.yml new file mode 100644 index 0000000..8261104 --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.form_mode.user.register.yml @@ -0,0 +1,7 @@ +id: user.register +uuid: 1d8bdf42-c908-43b6-a802-bb350d80a248 +label: Register +targetEntityType: user +status: true +cache: true +langcode: en diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.view_mode.comment.full.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.view_mode.comment.full.yml new file mode 100644 index 0000000..ebeed20 --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.view_mode.comment.full.yml @@ -0,0 +1,7 @@ +id: comment.full +uuid: 06ab5b16-e197-4242-b72c-4453793fabba +label: 'Full comment' +targetEntityType: comment +status: false +cache: true +langcode: en diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.view_mode.custom_block.full.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.view_mode.custom_block.full.yml new file mode 100644 index 0000000..bccd765 --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.view_mode.custom_block.full.yml @@ -0,0 +1,7 @@ +id: custom_block.full +uuid: 96f20030-6465-43ed-9e00-f2a16f52ef6e +label: Full +targetEntityType: custom_block +status: false +cache: true +langcode: en diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.view_mode.node.full.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.view_mode.node.full.yml new file mode 100644 index 0000000..8e4a597 --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.view_mode.node.full.yml @@ -0,0 +1,7 @@ +id: node.full +uuid: faa8c4b0-64a5-458e-8e03-3ae4b4daee5b +label: 'Full content' +targetEntityType: node +status: false +cache: true +langcode: en diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.view_mode.node.rss.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.view_mode.node.rss.yml new file mode 100644 index 0000000..6137005 --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.view_mode.node.rss.yml @@ -0,0 +1,7 @@ +id: node.rss +uuid: a0f42dfa-6d27-40a3-a506-6d250c0fa47a +label: RSS +targetEntityType: node +status: false +cache: true +langcode: en diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.view_mode.node.search_index.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.view_mode.node.search_index.yml new file mode 100644 index 0000000..47d9ea0 --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.view_mode.node.search_index.yml @@ -0,0 +1,7 @@ +id: node.search_index +uuid: 17b34a6b-401f-421a-8100-f1879cbc565a +label: 'Search index' +targetEntityType: node +status: false +cache: true +langcode: en diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.view_mode.node.search_result.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.view_mode.node.search_result.yml new file mode 100644 index 0000000..2a3fa50 --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.view_mode.node.search_result.yml @@ -0,0 +1,7 @@ +id: node.search_result +uuid: 095d7357-de7d-4acc-953a-585cd106e89b +label: 'Search result' +targetEntityType: node +status: false +cache: true +langcode: en diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.view_mode.node.teaser.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.view_mode.node.teaser.yml new file mode 100644 index 0000000..90a00d9 --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.view_mode.node.teaser.yml @@ -0,0 +1,7 @@ +id: node.teaser +uuid: 9f83c955-6c84-421b-b156-86764523ee53 +label: Teaser +targetEntityType: node +status: true +cache: true +langcode: en diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.view_mode.taxonomy_term.full.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.view_mode.taxonomy_term.full.yml new file mode 100644 index 0000000..faac83b --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.view_mode.taxonomy_term.full.yml @@ -0,0 +1,7 @@ +id: taxonomy_term.full +uuid: dd617891-9328-496b-9500-b989ad5424f7 +label: 'Taxonomy term page' +targetEntityType: taxonomy_term +status: false +cache: true +langcode: en diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.view_mode.user.compact.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.view_mode.user.compact.yml new file mode 100644 index 0000000..34daabf --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.view_mode.user.compact.yml @@ -0,0 +1,7 @@ +id: user.compact +uuid: a5572673-f233-4576-9739-5f4dcfd1e7fe +label: Compact +targetEntityType: user +status: true +cache: true +langcode: en diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.view_mode.user.full.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.view_mode.user.full.yml new file mode 100644 index 0000000..ade2c3f --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/entity.view_mode.user.full.yml @@ -0,0 +1,7 @@ +id: user.full +uuid: 021fa7ab-8e19-4ab7-8c4e-b68edcfacb52 +label: 'User account' +targetEntityType: user +status: false +cache: true +langcode: en diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field.field.comment.comment_body.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field.field.comment.comment_body.yml new file mode 100644 index 0000000..6707749 --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field.field.comment.comment_body.yml @@ -0,0 +1,13 @@ +id: comment.comment_body +uuid: ba70ca53-446e-4051-9b02-2ae87deaaf32 +status: true +langcode: en +name: comment_body +entity_type: comment +type: text_long +settings: { } +module: text +locked: false +cardinality: 1 +translatable: false +indexes: { } diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field.field.custom_block.body.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field.field.custom_block.body.yml new file mode 100644 index 0000000..9e809db --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field.field.custom_block.body.yml @@ -0,0 +1,13 @@ +id: custom_block.body +uuid: 973ff8cf-b8b6-476d-9000-ba76e350e62d +status: true +langcode: en +name: body +entity_type: custom_block +type: text_with_summary +settings: { } +module: text +locked: false +cardinality: 1 +translatable: false +indexes: { } diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field.field.node.body.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field.field.node.body.yml new file mode 100644 index 0000000..503f104 --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field.field.node.body.yml @@ -0,0 +1,13 @@ +id: node.body +uuid: 20e001da-0aa1-4f91-9108-8c7ed25733ad +status: true +langcode: en +name: body +entity_type: node +type: text_with_summary +settings: { } +module: text +locked: false +cardinality: 1 +translatable: false +indexes: { } diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field.field.node.comment.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field.field.node.comment.yml new file mode 100644 index 0000000..e448333 --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field.field.node.comment.yml @@ -0,0 +1,13 @@ +id: node.comment +uuid: f3346dcc-6a3f-4674-8e28-40ec43a19b36 +status: true +langcode: en +name: comment +entity_type: node +type: comment +settings: { } +module: comment +locked: false +cardinality: 1 +translatable: false +indexes: { } diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field.field.node.field_image.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field.field.node.field_image.yml new file mode 100644 index 0000000..c7d7818 --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field.field.node.field_image.yml @@ -0,0 +1,35 @@ +id: node.field_image +uuid: 748beaea-5074-4ff2-b51c-28a643d37c3a +status: true +langcode: und +name: field_image +entity_type: node +type: image +settings: + uri_scheme: public + default_image: + fid: null + alt: '' + title: '' + width: null + height: null + column_groups: + file: + label: File + columns: + - target_id + - width + - height + alt: + label: Alt + translatable: true + title: + label: Title + translatable: true +module: image +locked: false +cardinality: 1 +translatable: false +indexes: + target_id: + - target_id diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field.field.node.field_tags.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field.field.node.field_tags.yml new file mode 100644 index 0000000..77bc8f5 --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field.field.node.field_tags.yml @@ -0,0 +1,20 @@ +id: node.field_tags +uuid: 60db47f4-54fb-4c86-a439-5769fbda4bd1 +status: true +langcode: und +name: field_tags +entity_type: node +type: taxonomy_term_reference +settings: + allowed_values: + - + vocabulary: tags + parent: '0' + options_list_callback: null +module: taxonomy +locked: false +cardinality: -1 +translatable: false +indexes: + target_id: + - target_id diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field.field.user.user_picture.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field.field.user.user_picture.yml new file mode 100644 index 0000000..41aaf5e --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field.field.user.user_picture.yml @@ -0,0 +1,35 @@ +id: user.user_picture +uuid: 745b0ce0-aece-42dd-a800-ade5b8455e84 +status: true +langcode: en +name: user_picture +entity_type: user +type: image +settings: + uri_scheme: public + default_image: + fid: null + alt: '' + title: '' + width: null + height: null + column_groups: + file: + label: File + columns: + - target_id + - width + - height + alt: + label: Alt + translatable: true + title: + label: Title + translatable: true +module: image +locked: false +cardinality: 1 +translatable: false +indexes: + target_id: + - target_id diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field.instance.comment.node__comment.comment_body.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field.instance.comment.node__comment.comment_body.yml new file mode 100644 index 0000000..b65c5ac --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field.instance.comment.node__comment.comment_body.yml @@ -0,0 +1,16 @@ +id: comment.node__comment.comment_body +uuid: 9df14a59-17b4-46f1-b400-d1c0a1eec516 +status: true +langcode: en +field_uuid: ba70ca53-446e-4051-9b02-2ae87deaaf32 +field_name: comment_body +entity_type: comment +bundle: node__comment +label: Comment +description: '' +required: true +default_value: { } +default_value_function: '' +settings: + text_processing: '1' +field_type: text_long diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field.instance.custom_block.basic.body.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field.instance.custom_block.basic.body.yml new file mode 100644 index 0000000..1d26978 --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field.instance.custom_block.basic.body.yml @@ -0,0 +1,17 @@ +id: custom_block.basic.body +uuid: c93f379d-ce10-48b1-8b00-c0ddbc55f6cf +status: true +langcode: en +field_uuid: 973ff8cf-b8b6-476d-9000-ba76e350e62d +field_name: body +entity_type: custom_block +bundle: basic +label: 'Block body' +description: '' +required: false +default_value: { } +default_value_function: '' +settings: + display_summary: false + text_processing: true +field_type: text_with_summary diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field.instance.node.article.body.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field.instance.node.article.body.yml new file mode 100644 index 0000000..c330fc9 --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field.instance.node.article.body.yml @@ -0,0 +1,17 @@ +id: node.article.body +uuid: 5918f0b8-8be3-4117-8705-5c87969ad343 +status: true +langcode: en +field_uuid: 20e001da-0aa1-4f91-9108-8c7ed25733ad +field_name: body +entity_type: node +bundle: article +label: Body +description: '' +required: false +default_value: { } +default_value_function: '' +settings: + display_summary: true + text_processing: true +field_type: text_with_summary diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field.instance.node.article.comment.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field.instance.node.article.comment.yml new file mode 100644 index 0000000..99882a0 --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field.instance.node.article.comment.yml @@ -0,0 +1,28 @@ +id: node.article.comment +uuid: 91ee2ec5-bd32-40c9-b001-1e934a8e2d7f +status: true +langcode: en +field_uuid: f3346dcc-6a3f-4674-8e28-40ec43a19b36 +field_name: comment +entity_type: node +bundle: article +label: 'Comment settings' +description: '' +required: true +default_value: + - + status: 2 + cid: 0 + last_comment_name: '' + last_comment_timestamp: 0 + last_comment_uid: 0 + comment_count: 0 +default_value_function: '' +settings: + default_mode: 1 + per_page: 50 + form_location: 1 + anonymous: 0 + subject: 1 + preview: 1 +field_type: comment diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field.instance.node.article.field_image.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field.instance.node.article.field_image.yml new file mode 100644 index 0000000..9892d83 --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field.instance.node.article.field_image.yml @@ -0,0 +1,30 @@ +id: node.article.field_image +uuid: 9601b8f1-65a9-46a6-a500-d072d1232449 +status: true +langcode: und +field_uuid: 748beaea-5074-4ff2-b51c-28a643d37c3a +field_name: field_image +entity_type: node +bundle: article +label: Image +description: '' +required: false +default_value: { } +default_value_function: '' +settings: + file_directory: field/image + file_extensions: 'png gif jpg jpeg' + max_filesize: '' + max_resolution: '' + min_resolution: '' + alt_field: true + title_field: false + alt_field_required: false + title_field_required: false + default_image: + fid: null + alt: '' + title: '' + width: null + height: null +field_type: image diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field.instance.node.article.field_tags.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field.instance.node.article.field_tags.yml new file mode 100644 index 0000000..c6e904b --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field.instance.node.article.field_tags.yml @@ -0,0 +1,15 @@ +id: node.article.field_tags +uuid: 09fed4e4-c628-468a-9607-7dcd01f55a59 +status: true +langcode: und +field_uuid: 60db47f4-54fb-4c86-a439-5769fbda4bd1 +field_name: field_tags +entity_type: node +bundle: article +label: Tags +description: 'Enter a comma-separated list of words to describe your content.' +required: false +default_value: { } +default_value_function: '' +settings: { } +field_type: taxonomy_term_reference diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field.instance.node.page.body.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field.instance.node.page.body.yml new file mode 100644 index 0000000..bba9863 --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field.instance.node.page.body.yml @@ -0,0 +1,17 @@ +id: node.page.body +uuid: bec4e6bd-5dba-495e-b400-e4de627faac9 +status: true +langcode: en +field_uuid: 20e001da-0aa1-4f91-9108-8c7ed25733ad +field_name: body +entity_type: node +bundle: page +label: Body +description: '' +required: false +default_value: { } +default_value_function: '' +settings: + display_summary: true + text_processing: true +field_type: text_with_summary diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field.instance.user.user.user_picture.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field.instance.user.user.user_picture.yml new file mode 100644 index 0000000..d3b78ff --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field.instance.user.user.user_picture.yml @@ -0,0 +1,30 @@ +id: user.user.user_picture +uuid: 1e125e81-5211-4c73-a500-c45099ab9014 +status: true +langcode: en +field_uuid: 745b0ce0-aece-42dd-a800-ade5b8455e84 +field_name: user_picture +entity_type: user +bundle: user +label: Picture +description: 'Your virtual face or picture.' +required: false +default_value: { } +default_value_function: '' +settings: + file_extensions: 'png gif jpg jpeg' + file_directory: pictures + max_filesize: '30 KB' + alt_field: false + title_field: false + max_resolution: 85x85 + min_resolution: '' + default_image: + fid: null + alt: '' + title: '' + width: null + height: null + alt_field_required: false + title_field_required: false +field_type: image diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field.settings.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field.settings.yml new file mode 100644 index 0000000..b6172c1 --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field.settings.yml @@ -0,0 +1 @@ +purge_batch_size: 10 diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field_ui.settings.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field_ui.settings.yml new file mode 100644 index 0000000..046f9a4 --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/field_ui.settings.yml @@ -0,0 +1 @@ +field_prefix: field_ diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/file.settings.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/file.settings.yml new file mode 100644 index 0000000..b88659c --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/file.settings.yml @@ -0,0 +1,5 @@ +description: + type: textfield + length: 128 +icon: + directory: core/modules/file/icons diff --git a/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/filter.format.basic_html.yml b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/filter.format.basic_html.yml new file mode 100644 index 0000000..fa0f3a8 --- /dev/null +++ b/sites/default/files/config__R8x5QBMPca2jhgexA8IkKDWtU2055_x5aqCVZGpcz4/active/filter.format.basic_html.yml @@ -0,0 +1,54 @@ +format: basic_html +name: 'Basic HTML' +uuid: c4b4acfb-5731-47ad-b500-dbaffaa37647 +weight: 0 +cache: true +status: true +langcode: en +filters: + filter_html: + id: filter_html + provider: filter + status: true + weight: -10 + settings: + allowed_html: '