public function EventType::createContent in Open Social 8.4
Same name and namespace in other branches
- 8.9 modules/custom/social_demo/src/Plugin/DemoContent/EventType.php \Drupal\social_demo\Plugin\DemoContent\EventType::createContent()
- 8 modules/custom/social_demo/src/Plugin/DemoContent/EventType.php \Drupal\social_demo\Plugin\DemoContent\EventType::createContent()
- 8.2 modules/custom/social_demo/src/Plugin/DemoContent/EventType.php \Drupal\social_demo\Plugin\DemoContent\EventType::createContent()
- 8.3 modules/custom/social_demo/src/Plugin/DemoContent/EventType.php \Drupal\social_demo\Plugin\DemoContent\EventType::createContent()
- 8.5 modules/custom/social_demo/src/Plugin/DemoContent/EventType.php \Drupal\social_demo\Plugin\DemoContent\EventType::createContent()
- 8.6 modules/custom/social_demo/src/Plugin/DemoContent/EventType.php \Drupal\social_demo\Plugin\DemoContent\EventType::createContent()
- 8.7 modules/custom/social_demo/src/Plugin/DemoContent/EventType.php \Drupal\social_demo\Plugin\DemoContent\EventType::createContent()
- 8.8 modules/custom/social_demo/src/Plugin/DemoContent/EventType.php \Drupal\social_demo\Plugin\DemoContent\EventType::createContent()
- 10.3.x modules/custom/social_demo/src/Plugin/DemoContent/EventType.php \Drupal\social_demo\Plugin\DemoContent\EventType::createContent()
- 10.0.x modules/custom/social_demo/src/Plugin/DemoContent/EventType.php \Drupal\social_demo\Plugin\DemoContent\EventType::createContent()
- 10.1.x modules/custom/social_demo/src/Plugin/DemoContent/EventType.php \Drupal\social_demo\Plugin\DemoContent\EventType::createContent()
- 10.2.x modules/custom/social_demo/src/Plugin/DemoContent/EventType.php \Drupal\social_demo\Plugin\DemoContent\EventType::createContent()
Creates content.
Return value
array An array with list of created entities.
Overrides DemoTaxonomyTerm::createContent
File
- modules/
custom/ social_demo/ src/ Plugin/ DemoContent/ EventType.php, line 23
Class
- EventType
- EventType Plugin for demo content.
Namespace
Drupal\social_demo\Plugin\DemoContentCode
public function createContent() {
// Check if event types are enabled.
if (!\Drupal::moduleHandler()
->moduleExists('social_event_type')) {
return;
}
return parent::createContent();
}