public static function Framework::addTestFlag in Realistic Dummy Content 7.2
Same name and namespace in other branches
- 8.2 api/src/Framework/Framework.php \Drupal\realistic_dummy_content_api\Framework\Framework::addTestFlag()
- 3.x 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 - Framework::moduleInvokeAll in api/
src/ Framework/ Framework.php - 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 312
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 = array();
}
self::$testFlag[$flag] = $flag;
}