simplenews-3.0.0-alpha1/src/SubscriptionWidgetInterface.php

src/SubscriptionWidgetInterface.php
<?php

namespace Drupal\simplenews;

use Drupal\Core\Field\WidgetInterface;

/**
 * Defines a widget used for the subscriptions field of a Subscriber.
 */
interface SubscriptionWidgetInterface extends WidgetInterface {

  /**
   * Set the newsletters available for selection.
   *
   * @param string[] $newsletter_ids
   *   Indexed array of newsletter IDs.
   */
  public function setAvailableNewsletterIds(array $newsletter_ids);

  /**
   * Returns the newsletters available to select from.
   *
   * @return string[]
   *   The newsletter IDs available to select from, as an indexed array.
   */
  public function getAvailableNewsletterIds();

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc