Same name and namespace in other branches
- 8.9.x core/lib/Drupal/Component/Assertion/Inspector.php \Drupal\Component\Assertion\Inspector::assertAllStrings()
- 9 core/lib/Drupal/Component/Assertion/Inspector.php \Drupal\Component\Assertion\Inspector::assertAllStrings()
Asserts that all members are strings.
Use this only if it is vital that the members not be objects, otherwise test with ::assertAllStringable().
Parameters
mixed $traversable: Variable to be examined.
Return value
bool TRUE if $traversable can be traversed and all members are strings.
13 calls to Inspector::assertAllStrings()
- Cache::mergeTags in core/
lib/ Drupal/ Core/ Cache/ Cache.php - Merges arrays of cache tags and removes duplicates.
- CacheCollector::__construct in core/
lib/ Drupal/ Core/ Cache/ CacheCollector.php - Constructs a CacheCollector object.
- CKEditor4To5UpgradePluginManager::validateAndBuildMaps in core/
modules/ ckeditor5/ src/ Plugin/ CKEditor4To5UpgradePluginManager.php - Validates plugin definitions: avoids conflicts. Builds maps for later use.
- CKEditor5PluginDefinition::validateDrupalAspects in core/
modules/ ckeditor5/ src/ Plugin/ CKEditor5PluginDefinition.php - Validates the Drupal aspects of the CKEditor 5 plugin definition.
- CKEditor5PluginManager::getProvidedElements in core/
modules/ ckeditor5/ src/ Plugin/ CKEditor5PluginManager.php
File
- core/
lib/ Drupal/ Component/ Assertion/ Inspector.php, line 83
Class
Namespace
Drupal\Component\AssertionCode
public static function assertAllStrings($traversable) {
return static::assertAll('is_string', $traversable);
}