ActivityContextInterface.php in Open Social 8.7
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.2 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.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;
use Drupal\Core\Entity\EntityInterface;
/**
* Defines an interface for Activity content plugins.
*/
interface ActivityContextInterface extends PluginInspectionInterface {
/**
* Returns a batched list of recipients for this context.
*
* @param array $data
* The data.
* @param int $last_id
* The last ID.
* @param int $limit
* The limit.
*
* @return array
* An associative array of recipients, containing the following key-value
* pairs:
* - target_type: The entity type ID.
* - target_id: The entity ID.
*/
public function getRecipients(array $data, $last_id, $limit);
/**
* Determines if the entity is valid for this context.
*
* @param \Drupal\Core\Entity\EntityInterface $entity
* The entity object.
*
* @return bool
* TRUE if it's valid entity.
*/
public function isValidEntity(EntityInterface $entity);
}
Interfaces
Name | Description |
---|---|
ActivityContextInterface | Defines an interface for Activity content plugins. |