public function Framework::testEntityIsDummy 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::testEntityIsDummy()
 - 7.2 api/src/Framework/Framework.php \Drupal\realistic_dummy_content_api\Framework\Framework::testEntityIsDummy()
 
Tests self::entityIsDummy().
File
- api/
src/ Framework/ Framework.php, line 459  
Class
- Framework
 - The entry point for the framework.
 
Namespace
Drupal\realistic_dummy_content_api\FrameworkCode
public function testEntityIsDummy() {
  return $this
    ->entityIsDummy('whatever', 'whatever') || !$this
    ->entityIsDummy((object) [
    'devel_generate' => TRUE,
  ], 'whatever');
}