interface DemoContentInterface in Open Social 8.6
Same name and namespace in other branches
- 8.9 modules/custom/social_demo/src/DemoContentInterface.php \Drupal\social_demo\DemoContentInterface
- 8 modules/custom/social_demo/src/DemoContentInterface.php \Drupal\social_demo\DemoContentInterface
- 8.2 modules/custom/social_demo/src/DemoContentInterface.php \Drupal\social_demo\DemoContentInterface
- 8.3 modules/custom/social_demo/src/DemoContentInterface.php \Drupal\social_demo\DemoContentInterface
- 8.4 modules/custom/social_demo/src/DemoContentInterface.php \Drupal\social_demo\DemoContentInterface
- 8.5 modules/custom/social_demo/src/DemoContentInterface.php \Drupal\social_demo\DemoContentInterface
- 8.7 modules/custom/social_demo/src/DemoContentInterface.php \Drupal\social_demo\DemoContentInterface
- 8.8 modules/custom/social_demo/src/DemoContentInterface.php \Drupal\social_demo\DemoContentInterface
- 10.3.x modules/custom/social_demo/src/DemoContentInterface.php \Drupal\social_demo\DemoContentInterface
- 10.0.x modules/custom/social_demo/src/DemoContentInterface.php \Drupal\social_demo\DemoContentInterface
- 10.1.x modules/custom/social_demo/src/DemoContentInterface.php \Drupal\social_demo\DemoContentInterface
- 10.2.x modules/custom/social_demo/src/DemoContentInterface.php \Drupal\social_demo\DemoContentInterface
Interface DemoContentInterface.
@package Drupal\social_demo
Hierarchy
- interface \Drupal\Component\Plugin\PluginInspectionInterface; interface \Drupal\Core\Plugin\ContainerFactoryPluginInterface
- interface \Drupal\social_demo\DemoContentInterface
Expanded class hierarchy of DemoContentInterface
All classes that implement DemoContentInterface
File
- modules/
custom/ social_demo/ src/ DemoContentInterface.php, line 14
Namespace
Drupal\social_demoView source
interface DemoContentInterface extends PluginInspectionInterface, ContainerFactoryPluginInterface {
/**
* Returns the file name.
*
* @return string
* The source filename where are data.
*/
public function getSource();
/**
* Sets the used profile.
*
* @param string $profile
* The profile.
*
* @return string
* Void.
*/
public function setProfile($profile);
/**
* Returns the profile.
*
* @return string
* The used demo content profile.
*/
public function getProfile();
/**
* Returns the module name.
*
* @return string
* The module name where is placed file with data.
*/
public function getModule();
/**
* Creates content.
*
* @return array
* An array with list of created entities.
*/
public function createContent();
/**
* Removes content.
*/
public function removeContent();
/**
* Returns quantity of created items.
*
* @return int
* Returns quantity of created items.
*/
public function count();
/**
* Set entity storage.
*
* @param \Drupal\Core\Entity\EntityStorageInterface $entity_storage
* The EntityStorageInterface entity_storage.
*/
public function setEntityStorage(EntityStorageInterface $entity_storage);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ContainerFactoryPluginInterface:: |
public static | function | Creates an instance of the plugin. | 112 |
DemoContentInterface:: |
public | function | Returns quantity of created items. | 1 |
DemoContentInterface:: |
public | function | Creates content. | 8 |
DemoContentInterface:: |
public | function | Returns the module name. | 1 |
DemoContentInterface:: |
public | function | Returns the profile. | 1 |
DemoContentInterface:: |
public | function | Returns the file name. | 1 |
DemoContentInterface:: |
public | function | Removes content. | 1 |
DemoContentInterface:: |
public | function | Set entity storage. | 1 |
DemoContentInterface:: |
public | function | Sets the used profile. | 1 |
PluginInspectionInterface:: |
public | function | Gets the definition of the plugin implementation. | 4 |
PluginInspectionInterface:: |
public | function | Gets the plugin_id of the plugin instance. | 2 |