interface DemoContentParserInterface in Open Social 10.3.x
Same name and namespace in other branches
- 8.9 modules/custom/social_demo/src/DemoContentParserInterface.php \Drupal\social_demo\DemoContentParserInterface
- 8 modules/custom/social_demo/src/DemoContentParserInterface.php \Drupal\social_demo\DemoContentParserInterface
- 8.2 modules/custom/social_demo/src/DemoContentParserInterface.php \Drupal\social_demo\DemoContentParserInterface
- 8.3 modules/custom/social_demo/src/DemoContentParserInterface.php \Drupal\social_demo\DemoContentParserInterface
- 8.4 modules/custom/social_demo/src/DemoContentParserInterface.php \Drupal\social_demo\DemoContentParserInterface
- 8.5 modules/custom/social_demo/src/DemoContentParserInterface.php \Drupal\social_demo\DemoContentParserInterface
- 8.6 modules/custom/social_demo/src/DemoContentParserInterface.php \Drupal\social_demo\DemoContentParserInterface
- 8.7 modules/custom/social_demo/src/DemoContentParserInterface.php \Drupal\social_demo\DemoContentParserInterface
- 8.8 modules/custom/social_demo/src/DemoContentParserInterface.php \Drupal\social_demo\DemoContentParserInterface
- 10.0.x modules/custom/social_demo/src/DemoContentParserInterface.php \Drupal\social_demo\DemoContentParserInterface
- 10.1.x modules/custom/social_demo/src/DemoContentParserInterface.php \Drupal\social_demo\DemoContentParserInterface
- 10.2.x modules/custom/social_demo/src/DemoContentParserInterface.php \Drupal\social_demo\DemoContentParserInterface
Interface DemoContentParserInterface.
@package Drupal\social_demo
Hierarchy
- interface \Drupal\social_demo\DemoContentParserInterface
Expanded class hierarchy of DemoContentParserInterface
All classes that implement DemoContentParserInterface
4 files declare their use of DemoContentParserInterface
File
- modules/
custom/ social_demo/ src/ DemoContentParserInterface.php, line 10
Namespace
Drupal\social_demoView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DemoContentParserInterface:: |
public | function | Returns the path for the given file. | 1 |
DemoContentParserInterface:: |
public | function | Parses YAML file into a PHP value. | 1 |