You are here

protected function DemoContent::fetchData in Open Social 10.0.x

Same name and namespace in other branches
  1. 8.9 modules/custom/social_demo/src/DemoContent.php \Drupal\social_demo\DemoContent::fetchData()
  2. 8 modules/custom/social_demo/src/DemoContent.php \Drupal\social_demo\DemoContent::fetchData()
  3. 8.2 modules/custom/social_demo/src/DemoContent.php \Drupal\social_demo\DemoContent::fetchData()
  4. 8.3 modules/custom/social_demo/src/DemoContent.php \Drupal\social_demo\DemoContent::fetchData()
  5. 8.4 modules/custom/social_demo/src/DemoContent.php \Drupal\social_demo\DemoContent::fetchData()
  6. 8.5 modules/custom/social_demo/src/DemoContent.php \Drupal\social_demo\DemoContent::fetchData()
  7. 8.6 modules/custom/social_demo/src/DemoContent.php \Drupal\social_demo\DemoContent::fetchData()
  8. 8.7 modules/custom/social_demo/src/DemoContent.php \Drupal\social_demo\DemoContent::fetchData()
  9. 8.8 modules/custom/social_demo/src/DemoContent.php \Drupal\social_demo\DemoContent::fetchData()
  10. 10.3.x modules/custom/social_demo/src/DemoContent.php \Drupal\social_demo\DemoContent::fetchData()
  11. 10.1.x modules/custom/social_demo/src/DemoContent.php \Drupal\social_demo\DemoContent::fetchData()
  12. 10.2.x modules/custom/social_demo/src/DemoContent.php \Drupal\social_demo\DemoContent::fetchData()

Gets the data from a file.

9 calls to DemoContent::fetchData()
DemoComment::createContent in modules/custom/social_demo/src/DemoComment.php
Creates content.
DemoContent::removeContent in modules/custom/social_demo/src/DemoContent.php
Removes content.
DemoEntity::createContent in modules/custom/social_demo/src/DemoEntity.php
Creates content.
DemoFile::createContent in modules/custom/social_demo/src/DemoFile.php
Creates content.
DemoGroup::createContent in modules/custom/social_demo/src/DemoGroup.php
Creates content.

... See full list

File

modules/custom/social_demo/src/DemoContent.php, line 124

Class

DemoContent
Class DemoContent.

Namespace

Drupal\social_demo

Code

protected function fetchData() {
  if (!$this->data) {
    $this->data = $this->parser
      ->parseFileFromModule($this
      ->getSource(), $this
      ->getModule(), $this
      ->getProfile());
  }
  return $this->data;
}