You are here

interface SimpleAdsCampaignInterface in SimpleAds 8

Defines an interface SimpleAdsCampaign plugins.

Hierarchy

Expanded class hierarchy of SimpleAdsCampaignInterface

All classes that implement SimpleAdsCampaignInterface

File

src/SimpleAdsCampaignInterface.php, line 11

Namespace

Drupal\simpleads
View 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

Namesort descending Modifiers Type Description Overrides
PluginInspectionInterface::getPluginDefinition public function Gets the definition of the plugin implementation. 4
PluginInspectionInterface::getPluginId public function Gets the plugin_id of the plugin instance. 2
SimpleAdsCampaignInterface::activate public function Render an ad. 1
SimpleAdsCampaignInterface::buildForm public function Return ad campaign form to create an ad. 1
SimpleAdsCampaignInterface::createFormSubmit public function Create an ad campaign. 1
SimpleAdsCampaignInterface::deactivate public function Render an ad. 1
SimpleAdsCampaignInterface::deleteFormSubmit public function Delete an ad campaign. 1
SimpleAdsCampaignInterface::getName public function Return SimpleAds type name. 1
SimpleAdsCampaignInterface::updateFormSubmit public function Update an ad campaign. 1