public static function Inspector::assertAllStrings in Drupal 8
Same name and namespace in other branches
- 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()
- ApcuBackend::set in core/
lib/ Drupal/ Core/ Cache/ ApcuBackend.php - Stores data in the persistent cache.
- 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.
- CacheTagsInvalidator::invalidateTags in core/
lib/ Drupal/ Core/ Cache/ CacheTagsInvalidator.php - Marks cache items with any of the specified tags as invalid.
- DatabaseBackend::doSetMultiple in core/
lib/ Drupal/ Core/ Cache/ DatabaseBackend.php - Stores multiple items in the persistent cache.
File
- core/
lib/ Drupal/ Component/ Assertion/ Inspector.php, line 79
Class
Namespace
Drupal\Component\AssertionCode
public static function assertAllStrings($traversable) {
return static::assertAll('is_string', $traversable);
}