public static function Unicode::ucfirst in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Component/Utility/Unicode.php \Drupal\Component\Utility\Unicode::ucfirst()
Capitalizes the first character of a UTF-8 string.
Parameters
string $text: The string to convert.
Return value
string The string with the first character as uppercase.
8 calls to Unicode::ucfirst()
- DependencyTest::testMissingModules in core/
modules/ system/ src/ Tests/ Module/ DependencyTest.php - Attempts to enable a module with a missing dependency.
- drupal_verify_profile in core/
includes/ install.inc - Verifies that all dependencies are met for a given installation profile.
- HandlerBase::caseTransform in core/
modules/ views/ src/ Plugin/ views/ HandlerBase.php - Transform a string by a certain method.
- ModulesListForm::buildRow in core/
modules/ system/ src/ Form/ ModulesListForm.php - Builds a table row for the system modules page.
- PathBasedBreadcrumbBuilder::build in core/
modules/ system/ src/ PathBasedBreadcrumbBuilder.php - Builds the breadcrumb.
File
- core/
lib/ Drupal/ Component/ Utility/ Unicode.php, line 351 - Contains \Drupal\Component\Utility\Unicode.
Class
- Unicode
- Provides Unicode-related conversions and operations.
Namespace
Drupal\Component\UtilityCode
public static function ucfirst($text) {
return static::strtoupper(static::substr($text, 0, 1)) . static::substr($text, 1);
}