You are here

core.entity_form_display.node.CONTENT_TYPE.default.bit.yml in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 8.8

configbit/varbase_config_templates/core.entity_form_display.node.CONTENT_TYPE.default.bit.yml

File

configbit/varbase_config_templates/core.entity_form_display.node.CONTENT_TYPE.default.bit.yml
View source
  1. type: action
  2. status: true
  3. targetEntityType: node
  4. token_variant: bundle
  5. event: config.save
  6. event_config: core.entity_form_display.node.CONTENT_TYPE.default
  7. config_bits:
  8. core.entity_form_display.node.CONTENT_TYPE.default:
  9. # -------------------------------------------------------------------------.
  10. # Add Enter title here as the Placeholder for the title of new content type.
  11. # -------------------------------------------------------------------------.
  12. - add:
  13. dependencies:
  14. config:
  15. - node.type.CONTENT_TYPE
  16. - core.entity_form_display.node.CONTENT_TYPE.default
  17. target_config_path: content
  18. target_config_expected_to_have:
  19. title:
  20. settings:
  21. placeholder: ''
  22. target_config_value:
  23. title:
  24. settings:
  25. placeholder: 'Enter title here'
  26. # -------------------------------------------------------------------------.
  27. # Add Length indicator to the title field for new content type.
  28. # -------------------------------------------------------------------------.
  29. - add:
  30. dependencies:
  31. module:
  32. - length_indicator
  33. config:
  34. - node.type.CONTENT_TYPE
  35. - core.entity_form_display.node.CONTENT_TYPE.default
  36. target_config_path: content
  37. target_config_expected_not_to_have:
  38. title:
  39. third_party_settings:
  40. length_indicator:
  41. indicator: true
  42. target_config_value:
  43. title:
  44. third_party_settings:
  45. length_indicator:
  46. indicator: true
  47. indicator_opt:
  48. optimin: 15
  49. optimax: 50
  50. tolerance: 10
  51. # -------------------------------------------------------------------------.
  52. # Hide [Promoted to front page] at form display.
  53. # -------------------------------------------------------------------------.
  54. - add:
  55. dependencies:
  56. config:
  57. - node.type.CONTENT_TYPE
  58. - core.entity_form_display.node.CONTENT_TYPE.default
  59. target_config_path: hidden
  60. target_config_expected_not_to_have_index: promote
  61. target_config_value:
  62. promote: true
  63. - remove:
  64. dependencies:
  65. config:
  66. - node.type.CONTENT_TYPE
  67. - core.entity_form_display.node.CONTENT_TYPE.default
  68. target_config_path: content
  69. target_config_expected_to_have_index: promote
  70. target_config_remove_index: promote
  71. # -------------------------------------------------------------------------.
  72. # Hide [Sticky at top of lists] at form display.
  73. # -------------------------------------------------------------------------.
  74. - add:
  75. dependencies:
  76. config:
  77. - node.type.CONTENT_TYPE
  78. - core.entity_form_display.node.CONTENT_TYPE.default
  79. target_config_path: hidden
  80. target_config_expected_not_to_have_index: sticky
  81. target_config_value:
  82. sticky: true
  83. - remove:
  84. dependencies:
  85. config:
  86. - node.type.CONTENT_TYPE
  87. - core.entity_form_display.node.CONTENT_TYPE.default
  88. target_config_path: content
  89. target_config_expected_to_have_index: sticky
  90. target_config_remove_index: sticky