EmailFrequencyInterface.php in Open Social 10.0.x
Same filename and directory in other branches
- 8.9 modules/custom/activity_send/modules/activity_send_email/src/EmailFrequencyInterface.php
- 8 modules/custom/activity_send/modules/activity_send_email/src/EmailFrequencyInterface.php
- 8.2 modules/custom/activity_send/modules/activity_send_email/src/EmailFrequencyInterface.php
- 8.3 modules/custom/activity_send/modules/activity_send_email/src/EmailFrequencyInterface.php
- 8.4 modules/custom/activity_send/modules/activity_send_email/src/EmailFrequencyInterface.php
- 8.5 modules/custom/activity_send/modules/activity_send_email/src/EmailFrequencyInterface.php
- 8.6 modules/custom/activity_send/modules/activity_send_email/src/EmailFrequencyInterface.php
- 8.7 modules/custom/activity_send/modules/activity_send_email/src/EmailFrequencyInterface.php
- 8.8 modules/custom/activity_send/modules/activity_send_email/src/EmailFrequencyInterface.php
- 10.3.x modules/custom/activity_send/modules/activity_send_email/src/EmailFrequencyInterface.php
- 10.1.x modules/custom/activity_send/modules/activity_send_email/src/EmailFrequencyInterface.php
- 10.2.x modules/custom/activity_send/modules/activity_send_email/src/EmailFrequencyInterface.php
Namespace
Drupal\activity_send_emailFile
modules/custom/activity_send/modules/activity_send_email/src/EmailFrequencyInterface.phpView source
<?php
namespace Drupal\activity_send_email;
use Drupal\Component\Plugin\PluginInspectionInterface;
use Drupal\activity_creator\Entity\Activity;
use Drupal\message\Entity\Message;
use Drupal\user\Entity\User;
/**
* Common interface for all email frequencies.
*/
interface EmailFrequencyInterface extends PluginInspectionInterface {
/**
* Return the name of the email frequency.
*
* @return string
* The name of the email frequency.
*/
public function getName();
/**
* Return the weight of the frequency option.
*
* @return int
* The weight of the frequency option.
*/
public function getWeight();
/**
* Return the interval of the email frequency in seconds.
*
* @return int
* The interval in seconds.
*/
public function getInterval();
/**
* Processes an activity item.
*
* @param \Drupal\activity_creator\Entity\Activity $activity
* The Activity object.
* @param \Drupal\message\Entity\Message $message
* The Message object.
* @param \Drupal\user\Entity\User $target
* The target user account.
* @param string|null $body_text
* The output text of message.
*/
public function processItem(Activity $activity, Message $message, User $target, $body_text = NULL);
}
Interfaces
Name | Description |
---|---|
EmailFrequencyInterface | Common interface for all email frequencies. |