0

I am trying to create a custom module which creates a block, which the user should be able to place on his website.

At it's simplest, the block should contain a set of values, which were selected when the module was configured in the configuration. For example, my module configuration form has some checkboxes, and the selected values should appear on the block.

My question is, how can I get the values from the config form in the block. Thanks.

2
  • 1
    A module configuration is available globally, also in a block. Could you clarify in the question (not links) where the specific issue is?
    – 4uk4
    Commented Sep 15, 2017 at 6:21
  • Have you tried \Drupal::config('<config name>') ? Commented Sep 15, 2017 at 9:33

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.