ContextMapperInterface.php 524 B

123456789101112131415161718192021
  1. <?php
  2. namespace Drupal\ctools;
  3. /**
  4. * Provides an interface for mapping context configurations to context objects.
  5. */
  6. interface ContextMapperInterface {
  7. /**
  8. * Gathers the static context values.
  9. *
  10. * @param array[] $static_context_configurations
  11. * An array of static context configurations.
  12. *
  13. * @return \Drupal\Component\Plugin\Context\ContextInterface[]
  14. * An array of set context values, keyed by context name.
  15. */
  16. public function getContextValues(array $static_context_configurations);
  17. }