buildEntityConditionGroup example


  public static function createFromQueryParameter($parameter, ResourceType $resource_type, FieldResolver $field_resolver) {
    $expanded = static::expand($parameter);
    foreach ($expanded as &$filter_item) {
      if (isset($filter_item[static::CONDITION_KEY][EntityCondition::PATH_KEY])) {
        $unresolved = $filter_item[static::CONDITION_KEY][EntityCondition::PATH_KEY];
        $operator = $filter_item[static::CONDITION_KEY][EntityCondition::OPERATOR_KEY];
        $filter_item[static::CONDITION_KEY][EntityCondition::PATH_KEY] = $field_resolver->resolveInternalEntityQueryPath($resource_type$unresolved$operator);
      }
    }
    return new static(static::buildEntityConditionGroup($expanded));
  }

  /** * Expands any filter parameters using shorthand notation. * * @param array $original * The unexpanded filter data. * * @return array * The expanded filter data. */
  
Home | Imprint | This part of the site doesn't use cookies.