ActivityContextInterface.php in Open Social 8.2
Same filename and directory in other branches
- 8.9 modules/custom/activity_creator/src/Plugin/ActivityContextInterface.php
- 8 modules/custom/activity_creator/src/Plugin/ActivityContextInterface.php
- 8.3 modules/custom/activity_creator/src/Plugin/ActivityContextInterface.php
- 8.4 modules/custom/activity_creator/src/Plugin/ActivityContextInterface.php
- 8.5 modules/custom/activity_creator/src/Plugin/ActivityContextInterface.php
- 8.6 modules/custom/activity_creator/src/Plugin/ActivityContextInterface.php
- 8.7 modules/custom/activity_creator/src/Plugin/ActivityContextInterface.php
- 8.8 modules/custom/activity_creator/src/Plugin/ActivityContextInterface.php
- 10.3.x modules/custom/activity_creator/src/Plugin/ActivityContextInterface.php
- 10.0.x modules/custom/activity_creator/src/Plugin/ActivityContextInterface.php
- 10.1.x modules/custom/activity_creator/src/Plugin/ActivityContextInterface.php
- 10.2.x modules/custom/activity_creator/src/Plugin/ActivityContextInterface.php
Namespace
Drupal\activity_creator\PluginFile
modules/custom/activity_creator/src/Plugin/ActivityContextInterface.phpView source
<?php
namespace Drupal\activity_creator\Plugin;
use Drupal\Component\Plugin\PluginInspectionInterface;
/**
* Defines an interface for Activity content plugins.
*/
interface ActivityContextInterface extends PluginInspectionInterface {
/**
* Returns a batched list of recipients for this context.
*
* Format
* array(
* array (
* id = uid or gip
* type = "user / group"
* )
* )
*/
public function getRecipients(array $data, $last_id, $limit);
/**
* Determines if the entity is valid for this context.
*/
public function isValidEntity($entity);
}
Interfaces
Name | Description |
---|---|
ActivityContextInterface | Defines an interface for Activity content plugins. |