You are here

public function EventType::createContent in Open Social 8

Same name and namespace in other branches
  1. 8.9 modules/custom/social_demo/src/Plugin/DemoContent/EventType.php \Drupal\social_demo\Plugin\DemoContent\EventType::createContent()
  2. 8.2 modules/custom/social_demo/src/Plugin/DemoContent/EventType.php \Drupal\social_demo\Plugin\DemoContent\EventType::createContent()
  3. 8.3 modules/custom/social_demo/src/Plugin/DemoContent/EventType.php \Drupal\social_demo\Plugin\DemoContent\EventType::createContent()
  4. 8.4 modules/custom/social_demo/src/Plugin/DemoContent/EventType.php \Drupal\social_demo\Plugin\DemoContent\EventType::createContent()
  5. 8.5 modules/custom/social_demo/src/Plugin/DemoContent/EventType.php \Drupal\social_demo\Plugin\DemoContent\EventType::createContent()
  6. 8.6 modules/custom/social_demo/src/Plugin/DemoContent/EventType.php \Drupal\social_demo\Plugin\DemoContent\EventType::createContent()
  7. 8.7 modules/custom/social_demo/src/Plugin/DemoContent/EventType.php \Drupal\social_demo\Plugin\DemoContent\EventType::createContent()
  8. 8.8 modules/custom/social_demo/src/Plugin/DemoContent/EventType.php \Drupal\social_demo\Plugin\DemoContent\EventType::createContent()
  9. 10.3.x modules/custom/social_demo/src/Plugin/DemoContent/EventType.php \Drupal\social_demo\Plugin\DemoContent\EventType::createContent()
  10. 10.0.x modules/custom/social_demo/src/Plugin/DemoContent/EventType.php \Drupal\social_demo\Plugin\DemoContent\EventType::createContent()
  11. 10.1.x modules/custom/social_demo/src/Plugin/DemoContent/EventType.php \Drupal\social_demo\Plugin\DemoContent\EventType::createContent()
  12. 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\DemoContent

Code

public function createContent() {

  // Check if event types are enabled.
  if (!\Drupal::moduleHandler()
    ->moduleExists('social_event_type')) {
    return;
  }
  return parent::createContent();
}