e7ad0836b03abe569a8fc725896e9e51.yaml.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. return [
  3. '@class' => 'Grav\\Common\\File\\CompiledYamlFile',
  4. 'filename' => '/home/kevin/Documents/Sites/hehe.net/user/plugins/admin/blueprints/admin/pages/new_folder.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_FOLDER'
  20. ],
  21. 'folder' => [
  22. 'type' => 'text',
  23. 'label' => 'PLUGIN_ADMIN.FOLDER_NAME',
  24. 'help' => 'PLUGIN_ADMIN.FOLDER_NAME_HELP',
  25. 'validate' => [
  26. 'rule' => 'slug',
  27. 'required' => true
  28. ]
  29. ],
  30. 'route' => [
  31. 'type' => 'parents',
  32. 'label' => 'PLUGIN_ADMIN.PARENT_PAGE',
  33. 'classes' => 'fancy',
  34. 'validate' => [
  35. 'required' => true
  36. ]
  37. ],
  38. 'blueprint' => [
  39. 'type' => 'blueprint'
  40. ]
  41. ]
  42. ]
  43. ]
  44. ];