public static function Framework::addTestFlag in Realistic Dummy Content 3.x
Same name and namespace in other branches
- 8.2 api/src/Framework/Framework.php \Drupal\realistic_dummy_content_api\Framework\Framework::addTestFlag()
- 7.2 api/src/Framework/Framework.php \Drupal\realistic_dummy_content_api\Framework\Framework::addTestFlag()
Adds a flag during execution for testing.
4 calls to Framework::addTestFlag()
- Framework::hookEntityPresave in api/
src/ Framework/ Framework.php - React to an entity just before it is saved.
- Framework::moduleInvokeAll in api/
src/ Framework/ Framework.php - Invokes all hooks.
- Framework::testAddTestFlag in api/
src/ Framework/ Framework.php - Tests self::addTestFlag().
- Framework::testClearTestFlag in api/
src/ Framework/ Framework.php - Tests self::clearTestFlag().
File
- api/
src/ Framework/ Framework.php, line 315
Class
- Framework
- The entry point for the framework.
Namespace
Drupal\realistic_dummy_content_api\FrameworkCode
public static function addTestFlag($flag) {
if (!is_array(self::$testFlag)) {
self::$testFlag = [];
}
self::$testFlag[$flag] = $flag;
}