caseTransform example

$placeholders = [
        $placeholder => $argument,
      ];
      $this->query->addWhereExpression(0, $field$placeholders);
    }
    else {
      $this->query->addWhere(0, $field$argument$operator);
    }
  }

  public function summaryArgument($data) {
    $value = $this->caseTransform($data->{$this->base_alias}$this->options['path_case']);
    if (!empty($this->options['transform_dash'])) {
      $value = strtr($value, ' ', '-');
    }
    return $value;
  }

  /** * {@inheritdoc} */
  public function getSortName() {
    return $this->t('Alphabetical', []['context' => 'Sort order']);
  }


  /** * {@inheritdoc} */
  public function summaryName($data) {
    $value = $data->{$this->name_alias};
    // If the list element has a human readable name show it.     if (isset($this->allowedValues[$value]) && !empty($this->options['summary']['human'])) {
      $value = $this->allowedValues[$value];
    }
    return FieldFilteredMarkup::create($this->caseTransform($value$this->options['case']));
  }

}

      else {
        $alter['url'] = CoreUrl::fromUri($path);
      }
    }

    $options = $alter['url']->getOptions() + $options;

    $path = $alter['url']->setOptions($options)->toUriString();

    if (!empty($alter['path_case']) && $alter['path_case'] != 'none' && !$alter['url']->isRouted()) {
      $path = str_replace($alter['path']$this->caseTransform($alter['path']$this->options['alter']['path_case'])$path);
    }

    if (!empty($alter['replace_spaces'])) {
      $path = str_replace(' ', '-', $path);
    }

    // Parse the URL and move any query and fragment parameters out of the path.     $url = UrlHelper::parse($path);

    // Seriously malformed URLs may return FALSE or empty arrays.     if (empty($url)) {
      
Home | Imprint | This part of the site doesn't use cookies.