You are here

interface DemoContentParserInterface in Open Social 8

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

Interface DemoContentParserInterface.

@package Drupal\social_demo

Hierarchy

Expanded class hierarchy of DemoContentParserInterface

All classes that implement DemoContentParserInterface

4 files declare their use of DemoContentParserInterface
Book.php in modules/custom/social_demo/src/Plugin/DemoContent/Book.php
Event.php in modules/custom/social_demo/src/Plugin/DemoContent/Event.php
Page.php in modules/custom/social_demo/src/Plugin/DemoContent/Page.php
Topic.php in modules/custom/social_demo/src/Plugin/DemoContent/Topic.php

File

modules/custom/social_demo/src/DemoContentParserInterface.php, line 10

Namespace

Drupal\social_demo
View source
interface DemoContentParserInterface {

  /**
   * Returns the path for the given file.
   *
   * @param string $file
   *   The filename.
   * @param string $module
   *   The module where the Yaml file is placed.
   * @param string $profile
   *   The profile used.
   *
   * @return string
   *   String with the full pathname including the file.
   */
  public function getPath($file, $module, $profile);

  /**
   * Parses YAML file into a PHP value.
   *
   * @param string $file
   *   The filename.
   * @param string $module
   *   The module where the Yaml file is placed.
   * @param string $profile
   *   The profile used.
   *
   * @return mixed
   *   The YAML converted to a PHP value.
   */
  public function parseFileFromModule($file, $module, $profile);

}

Members

Namesort descending Modifiers Type Description Overrides
DemoContentParserInterface::getPath public function Returns the path for the given file. 1
DemoContentParserInterface::parseFileFromModule public function Parses YAML file into a PHP value. 1