function drupal_ucfirst

Capitalizes the first letter of a UTF-8 string.

Parameters

$text: The string to convert.

Return value

The string with the first letter as uppercase.

See also

\Drupal\Component\Utility\Unicode::ucfirst().

Related topics

6 calls to drupal_ucfirst()
BreakpointAPITest::testConfigName in drupal/core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointAPITest.php
Test Breakpoint::buildConfigName().
DependencyTest::testMissingModules in drupal/core/modules/system/lib/Drupal/system/Tests/Module/DependencyTest.php
Attempts to enable a module with a missing dependency.
design_test_menu in drupal/core/modules/system/tests/modules/design_test/design_test.module
Implements hook_menu().
drupal_verify_profile in drupal/core/includes/install.inc
Verifies that all dependencies are met for a given installation profile.
system_modules in drupal/core/modules/system/system.admin.inc
Form constructor for the module enable/disable interface.

... See full list

File

drupal/core/includes/unicode.inc, line 304
Provides Unicode-related conversions and operations.

Code

function drupal_ucfirst($text) {
  return Unicode::ucfirst($text);
}