Skip to content

Instantly share code, notes, and snippets.

@EclipseGc
Created June 26, 2014 18:05
Show Gist options
  • Save EclipseGc/03f1868b56a72574043d to your computer and use it in GitHub Desktop.
Save EclipseGc/03f1868b56a72574043d to your computer and use it in GitHub Desktop.
<?php
$contexts = array(
'node' => new ContextDefinition('entity:node'),
);
drupal_set_message('<pre>' . print_r(\Drupal::service('plugin.manager.condition')->getDefinitionsForContexts($contexts), TRUE) . '</pre>');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment