You are here

interface ActivityActionInterface in Open Social 8.5

Same name and namespace in other branches
  1. 8.9 modules/custom/activity_creator/src/Plugin/ActivityActionInterface.php \Drupal\activity_creator\Plugin\ActivityActionInterface
  2. 8 modules/custom/activity_creator/src/Plugin/ActivityActionInterface.php \Drupal\activity_creator\Plugin\ActivityActionInterface
  3. 8.2 modules/custom/activity_creator/src/Plugin/ActivityActionInterface.php \Drupal\activity_creator\Plugin\ActivityActionInterface
  4. 8.3 modules/custom/activity_creator/src/Plugin/ActivityActionInterface.php \Drupal\activity_creator\Plugin\ActivityActionInterface
  5. 8.4 modules/custom/activity_creator/src/Plugin/ActivityActionInterface.php \Drupal\activity_creator\Plugin\ActivityActionInterface
  6. 8.6 modules/custom/activity_creator/src/Plugin/ActivityActionInterface.php \Drupal\activity_creator\Plugin\ActivityActionInterface
  7. 8.7 modules/custom/activity_creator/src/Plugin/ActivityActionInterface.php \Drupal\activity_creator\Plugin\ActivityActionInterface
  8. 8.8 modules/custom/activity_creator/src/Plugin/ActivityActionInterface.php \Drupal\activity_creator\Plugin\ActivityActionInterface
  9. 10.3.x modules/custom/activity_creator/src/Plugin/ActivityActionInterface.php \Drupal\activity_creator\Plugin\ActivityActionInterface
  10. 10.0.x modules/custom/activity_creator/src/Plugin/ActivityActionInterface.php \Drupal\activity_creator\Plugin\ActivityActionInterface
  11. 10.1.x modules/custom/activity_creator/src/Plugin/ActivityActionInterface.php \Drupal\activity_creator\Plugin\ActivityActionInterface
  12. 10.2.x modules/custom/activity_creator/src/Plugin/ActivityActionInterface.php \Drupal\activity_creator\Plugin\ActivityActionInterface

Defines an interface for Activity action plugins.

Hierarchy

Expanded class hierarchy of ActivityActionInterface

All classes that implement ActivityActionInterface

File

modules/custom/activity_creator/src/Plugin/ActivityActionInterface.php, line 10

Namespace

Drupal\activity_creator\Plugin
View source
interface ActivityActionInterface extends PluginInspectionInterface {

  /**
   * Creates a new message on the action with some logic behind it.
   */
  public function create($entity);

  /**
   * Dumb function that can be called to create the message.
   */
  public function createMessage($entity);

  /**
   * Checks if this is a valid entity for the action.
   */
  public function isValidEntity($entity);

}

Members

Namesort descending Modifiers Type Description Overrides
ActivityActionInterface::create public function Creates a new message on the action with some logic behind it. 1
ActivityActionInterface::createMessage public function Dumb function that can be called to create the message. 1
ActivityActionInterface::isValidEntity public function Checks if this is a valid entity for the action. 1
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