You are here

ActivityDestinationInterface.php in Open Social 8.6

File

modules/custom/activity_creator/src/Plugin/ActivityDestinationInterface.php
View source
<?php

namespace Drupal\activity_creator\Plugin;

use Drupal\Component\Plugin\PluginInspectionInterface;

/**
 * Defines an interface for Activity destination plugins.
 */
interface ActivityDestinationInterface extends PluginInspectionInterface {

  /**
   * Returns a view mode for the entity.
   */
  public function getViewMode($original_view_mode, $entity);

  /**
   * True or false if the activity destination is set.
   */
  public function isActiveInView($view);

}

Interfaces

Namesort descending Description
ActivityDestinationInterface Defines an interface for Activity destination plugins.