You are here

block_style_plugins_test.blockstyle.yml in Block Style Plugins 8

tests/modules/block_style_plugins_test/block_style_plugins_test.blockstyle.yml

File

tests/modules/block_style_plugins_test/block_style_plugins_test.blockstyle.yml
View source
  1. checkbox_with_exclude:
  2. label: 'Checkbox with Exclude'
  3. class: '\Drupal\block_style_plugins_test\Plugin\BlockStyle\CheckboxWithExclude'
  4. exclude:
  5. - 'system_powered_by_block'
  6. - 'basic'
  7. form_fields_created_with_yaml:
  8. label: 'Styles Created by Yaml'
  9. include:
  10. - 'system_powered_by_block'
  11. form:
  12. 'test_field':
  13. '#type': 'textfield'
  14. '#title': 'Title Created by Yaml'
  15. '#default_value': 'text goes here'
  16. 'second_field':
  17. '#type': 'select'
  18. '#title': 'Choose a style'
  19. '#options':
  20. 'style-1': 'Style 1'
  21. 'style-2': 'Style 2'
  22. template_set_with_yaml:
  23. label: 'Template Set by Yaml'
  24. template: 'block__test_custom'
  25. form:
  26. 'test_field':
  27. '#type': 'textfield'
  28. '#title': 'Template Title'