interface SimpleAdsTypeInterface in SimpleAds 8
Defines an interface SimpleAdsType plugins.
Hierarchy
- interface \Drupal\Component\Plugin\PluginInspectionInterface
- interface \Drupal\simpleads\SimpleAdsTypeInterface
Expanded class hierarchy of SimpleAdsTypeInterface
All classes that implement SimpleAdsTypeInterface
File
- src/
SimpleAdsTypeInterface.php, line 11
Namespace
Drupal\simpleadsView source
interface SimpleAdsTypeInterface extends PluginInspectionInterface {
/**
* Return SimpleAds type name.
*
* @return string
*/
public function getName();
/**
* Return ad form to create an ad.
*
* @return array form
*/
public function buildForm(array $form, FormStateInterface $form_state, $type = NULL, $id = NULL);
/**
* Create an ad.
*/
public function createFormSubmit($options, FormStateInterface $form_state, $type = NULL);
/**
* Update an ad.
*/
public function updateFormSubmit($options, FormStateInterface $form_state, $type = NULL, $id = NULL);
/**
* Delete an ad.
*/
public function deleteFormSubmit($options, FormStateInterface $form_state, $type = NULL, $id = NULL);
/**
* Theme function for the ad.
*
* @return array
*/
public function theme();
/**
* Render an ad.
*
* @return string
*/
public function render();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PluginInspectionInterface:: |
public | function | Gets the definition of the plugin implementation. | 4 |
PluginInspectionInterface:: |
public | function | Gets the plugin_id of the plugin instance. | 2 |
SimpleAdsTypeInterface:: |
public | function | Return ad form to create an ad. | 1 |
SimpleAdsTypeInterface:: |
public | function | Create an ad. | 1 |
SimpleAdsTypeInterface:: |
public | function | Delete an ad. | 1 |
SimpleAdsTypeInterface:: |
public | function | Return SimpleAds type name. | 1 |
SimpleAdsTypeInterface:: |
public | function | Render an ad. | 1 |
SimpleAdsTypeInterface:: |
public | function | Theme function for the ad. | 1 |
SimpleAdsTypeInterface:: |
public | function | Update an ad. | 1 |