function SystemMenuBlockTest::providerIgnoreActiveTrailConstraint
Provider for testIgnoreActiveTrailConstraint().
Return value
array[] Array of test cases for the IgnoreActiveTrail constraint.
File
-
core/
modules/ system/ tests/ src/ Kernel/ Block/ SystemMenuBlockTest.php, line 499
Class
Namespace
Drupal\Tests\system\Kernel\BlockCode
public static function providerIgnoreActiveTrailConstraint() : array {
return [
'Valid ignoring active trail' => [
1,
1,
TRUE,
TRUE,
FALSE,
],
'Valid not ignoring active trail' => [
1,
1,
TRUE,
NULL,
FALSE,
],
'Invalid level ignoring active trail' => [
2,
1,
TRUE,
TRUE,
TRUE,
],
'Invalid expand_all_items ignoring active trail' => [
2,
1,
FALSE,
TRUE,
TRUE,
],
'Invalid depth > 1' => [
1,
2,
FALSE,
TRUE,
TRUE,
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.