Created
June 26, 2014 18:05
-
-
Save EclipseGc/03f1868b56a72574043d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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