HEX
Server: Apache
System: Linux dev.epsylon.net 3.10.0-1160.144.1.el7.tuxcare.els2.x86_64 #1 SMP Sun Feb 15 11:22:42 UTC 2026 x86_64
User: nexper (1054)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/nexper/www/nexper_drupal/sites/all/modules/ctools/includes/views.inc
<?php

/**
 * Generate new context classes by argument settings on the view.
 */
function ctools_views_get_argument_context($argument) {
  if ($argument['type'] == 'context') {
    if (strpos($argument['context'], '.')) {
      list($context, $converter) = explode('.', $argument['context'], 2);
    }
    else {
      // Backwards-compat for before we had a system for delimiting the data
      // we retrieve out of context objects.
      $context = $argument['context'];
    }
    if ($context == 'term' || $context == 'vocabulary') {
      $context = 'entity:taxonomy_' . $context;
    }
    elseif ($entity = entity_get_info($context)) {
      $context = 'entity:' . $context;
    }
    $class = 'ctools_context_' . (empty($argument['context_optional']) ? 'required' : 'optional');
    $new_context = new $class($argument['label'], $context);
    return $new_context;
  }
}