function Inspector::assertAllCallable
Same name in other branches
- 9 core/lib/Drupal/Component/Assertion/Inspector.php \Drupal\Component\Assertion\Inspector::assertAllCallable()
- 10 core/lib/Drupal/Component/Assertion/Inspector.php \Drupal\Component\Assertion\Inspector::assertAllCallable()
- 11.x core/lib/Drupal/Component/Assertion/Inspector.php \Drupal\Component\Assertion\Inspector::assertAllCallable()
Asserts that all members are callable.
Parameters
mixed $traversable: Variable to be examined.
Return value
bool TRUE if $traversable can be traversed and all members are callable.
1 call to Inspector::assertAllCallable()
- InspectorTest::testAllCallable in core/
tests/ Drupal/ Tests/ Component/ Assertion/ InspectorTest.php - Tests asserting all members are callable.
File
-
core/
lib/ Drupal/ Component/ Assertion/ Inspector.php, line 261
Class
Namespace
Drupal\Component\AssertionCode
public static function assertAllCallable($traversable) {
return static::assertAll('is_callable', $traversable);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.