DemoContentInterface.php in Open Social 8.3
Same filename and directory in other branches
- 8.9 modules/custom/social_demo/src/DemoContentInterface.php
- 8 modules/custom/social_demo/src/DemoContentInterface.php
- 8.2 modules/custom/social_demo/src/DemoContentInterface.php
- 8.4 modules/custom/social_demo/src/DemoContentInterface.php
- 8.5 modules/custom/social_demo/src/DemoContentInterface.php
- 8.6 modules/custom/social_demo/src/DemoContentInterface.php
- 8.7 modules/custom/social_demo/src/DemoContentInterface.php
- 8.8 modules/custom/social_demo/src/DemoContentInterface.php
- 10.3.x modules/custom/social_demo/src/DemoContentInterface.php
- 10.0.x modules/custom/social_demo/src/DemoContentInterface.php
- 10.1.x modules/custom/social_demo/src/DemoContentInterface.php
- 10.2.x modules/custom/social_demo/src/DemoContentInterface.php
Namespace
Drupal\social_demoFile
modules/custom/social_demo/src/DemoContentInterface.phpView source
<?php
namespace Drupal\social_demo;
use Drupal\Component\Plugin\PluginInspectionInterface;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\Core\Entity\EntityStorageInterface;
/**
* Interface DemoContentInterface.
*
* @package Drupal\social_demo
*/
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);
}
Interfaces
Name | Description |
---|---|
DemoContentInterface | Interface DemoContentInterface. |