interface SimpleAdsCampaignInterface in SimpleAds 8
Defines an interface SimpleAdsCampaign plugins.
Hierarchy
- interface \Drupal\Component\Plugin\PluginInspectionInterface
- interface \Drupal\simpleads\SimpleAdsCampaignInterface
Expanded class hierarchy of SimpleAdsCampaignInterface
All classes that implement SimpleAdsCampaignInterface
File
- src/
SimpleAdsCampaignInterface.php, line 11
Namespace
Drupal\simpleadsView source
interface SimpleAdsCampaignInterface extends PluginInspectionInterface {
/**
* Return SimpleAds type name.
*
* @return string
*/
public function getName();
/**
* Return ad campaign form to create an ad.
*
* @return array form
*/
public function buildForm(array $form, FormStateInterface $form_state, $type = NULL, $id = NULL);
/**
* Create an ad campaign.
*/
public function createFormSubmit($options, FormStateInterface $form_state, $type = NULL);
/**
* Update an ad campaign.
*/
public function updateFormSubmit($options, FormStateInterface $form_state, $type = NULL, $id = NULL);
/**
* Delete an ad campaign.
*/
public function deleteFormSubmit($options, FormStateInterface $form_state, $type = NULL, $id = NULL);
/**
* Render an ad.
*
* @return string
*/
public function activate();
/**
* Render an ad.
*
* @return string
*/
public function deactivate();
}
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 |
SimpleAdsCampaignInterface:: |
public | function | Render an ad. | 1 |
SimpleAdsCampaignInterface:: |
public | function | Return ad campaign form to create an ad. | 1 |
SimpleAdsCampaignInterface:: |
public | function | Create an ad campaign. | 1 |
SimpleAdsCampaignInterface:: |
public | function | Render an ad. | 1 |
SimpleAdsCampaignInterface:: |
public | function | Delete an ad campaign. | 1 |
SimpleAdsCampaignInterface:: |
public | function | Return SimpleAds type name. | 1 |
SimpleAdsCampaignInterface:: |
public | function | Update an ad campaign. | 1 |