d650ac7625f1ccb972f3747e6aa8ed50.yaml.php 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?php
  2. return [
  3. '@class' => 'Grav\\Common\\File\\CompiledYamlFile',
  4. 'filename' => '/home/kevin/Documents/Sites/hehe.net/user/plugins/admin/blueprints/admin/pages/modular_new.yaml',
  5. 'modified' => 1546440944,
  6. 'data' => [
  7. 'rules' => [
  8. 'slug' => [
  9. 'pattern' => '[a-zA-Zа-яA-Я0-9_\\-]+',
  10. 'min' => 1,
  11. 'max' => 200
  12. ]
  13. ],
  14. 'form' => [
  15. 'validation' => 'loose',
  16. 'fields' => [
  17. 'section' => [
  18. 'type' => 'section',
  19. 'title' => 'PLUGIN_ADMIN.ADD_MODULAR_CONTENT'
  20. ],
  21. 'title' => [
  22. 'type' => 'text',
  23. 'label' => 'PLUGIN_ADMIN.PAGE_TITLE',
  24. 'validate' => [
  25. 'required' => true
  26. ]
  27. ],
  28. 'folder' => [
  29. 'type' => 'text',
  30. 'label' => 'PLUGIN_ADMIN.FOLDER_NAME',
  31. 'validate' => [
  32. 'rule' => 'slug',
  33. 'required' => true
  34. ]
  35. ],
  36. 'route' => [
  37. 'type' => 'parents',
  38. 'label' => 'PLUGIN_ADMIN.PAGE',
  39. 'classes' => 'fancy',
  40. 'validate' => [
  41. 'required' => true
  42. ]
  43. ],
  44. 'name' => [
  45. 'type' => 'select',
  46. 'classes' => 'fancy',
  47. 'label' => 'PLUGIN_ADMIN.MODULAR_TEMPLATE',
  48. 'help' => 'PLUGIN_ADMIN.PAGE_FILE_HELP',
  49. 'default' => 'default',
  50. 'data-options@' => '\\Grav\\Plugin\\AdminPlugin::pagesModularTypes',
  51. 'validate' => [
  52. 'required' => true
  53. ]
  54. ],
  55. 'modular' => [
  56. 'type' => 'hidden',
  57. 'default' => 1,
  58. 'validate' => [
  59. 'type' => 'bool'
  60. ]
  61. ],
  62. 'blueprint' => [
  63. 'type' => 'blueprint'
  64. ]
  65. ]
  66. ]
  67. ]
  68. ];