public function Framework::implementor 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::implementor()
- 7.2 api/src/Framework/Framework.php \Drupal\realistic_dummy_content_api\Framework\Framework::implementor()
Retrieves a framework-specific implementor.
1 call to Framework::implementor()
- Framework::moduleInvokeAll in api/src/ Framework/ Framework.php 
- Invokes all hooks.
File
- api/src/ Framework/ Framework.php, line 55 
Class
- Framework
- The entry point for the framework.
Namespace
Drupal\realistic_dummy_content_api\FrameworkCode
public function implementor() {
  if (!$this->implementor) {
    $framework = realistic_dummy_content_api_version();
    switch ($framework) {
      case 'Drupal8':
        $this->implementor = new Drupal8();
        break;
      default:
        throw new \Exception('No framework implementation class available for the framework ' . $framework);
    }
  }
  return $this->implementor;
}