You are here

public function Framework::createEntity in Realistic Dummy Content 3.x

Same name and namespace in other branches
  1. 8.2 api/src/Framework/Framework.php \Drupal\realistic_dummy_content_api\Framework\Framework::createEntity()
  2. 7.2 api/src/Framework/Framework.php \Drupal\realistic_dummy_content_api\Framework\Framework::createEntity()

Create an entity.

Parameters

array $info: Associative array which can contain (defaults are the first value): entity_type => node|user|... dummy => FALSE|TRUE.

Overrides FrameworkInterface::createEntity

1 call to Framework::createEntity()
Framework::testModuleInvokeAll in api/src/Framework/Framework.php
Tests self::moduleInvokeAll().
1 method overrides Framework::createEntity()
Drupal8::createEntity in api/src/Framework/Drupal8.php
Create an entity.

File

api/src/Framework/Framework.php, line 87

Class

Framework
The entry point for the framework.

Namespace

Drupal\realistic_dummy_content_api\Framework

Code

public function createEntity(array $info = []) {
  $return = $this
    ->implementor()
    ->createEntity($info);
  return $return;
}