Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ParameterBag.php

function ParameterBag::getAlpha

Returns the alphabetic characters of the parameter value.

File

vendor/symfony/http-foundation/ParameterBag.php, line 102

Class

ParameterBag
ParameterBag is a container for key/value pairs.

Namespace

Symfony\Component\HttpFoundation

Code

public function getAlpha(string $key, string $default = '') : string {
    return preg_replace('/[^[:alpha:]]/', '', $this->getString($key, $default));
}
RSS feed
Powered by Drupal