$configuration = [];
$variables['block_output'] = \Drupal::service('plugin.manager.block')
->createInstance($plugin_id, $configuration)
->build();
Created
January 12, 2017 20:17
-
-
Save jacerider/3069559ea2966c626906dc0d4e459625 to your computer and use it in GitHub Desktop.
Create a block plugin instance directly and pass it the configuration
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment