You are here

abstract class ActivityDestinationBase in Open Social 10.3.x

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

Base class for Activity destination plugins.

Hierarchy

Expanded class hierarchy of ActivityDestinationBase

6 files declare their use of ActivityDestinationBase
NotificationsActivityDestination.php in modules/custom/activity_basics/src/Plugin/ActivityDestination/NotificationsActivityDestination.php
SendActivityDestinationBase.php in modules/custom/activity_send/src/Plugin/SendActivityDestinationBase.php
StreamExploreActivityDestination.php in modules/custom/activity_basics/src/Plugin/ActivityDestination/StreamExploreActivityDestination.php
StreamGroupActivityDestination.php in modules/custom/activity_basics/src/Plugin/ActivityDestination/StreamGroupActivityDestination.php
StreamHomeActivityDestination.php in modules/custom/activity_basics/src/Plugin/ActivityDestination/StreamHomeActivityDestination.php

... See full list

File

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

Namespace

Drupal\activity_creator\Plugin
View source
abstract class ActivityDestinationBase extends PluginBase implements ActivityDestinationInterface {

  /**
   * {@inheritdoc}
   */
  public function getViewMode($original_view_mode, $entity) {
    return $original_view_mode;
  }

  /**
   * {@inheritdoc}
   */
  public function isActiveInView($view) {
    if (isset($view->filter['field_activity_destinations_value']->value[$this->pluginId])) {
      if ($view->filter['field_activity_destinations_value']->value[$this->pluginId] === $this->pluginId) {
        return TRUE;
      }
    }
    return FALSE;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ActivityDestinationBase::getViewMode public function Returns a view mode for the entity. Overrides ActivityDestinationInterface::getViewMode
ActivityDestinationBase::isActiveInView public function True or false if the activity destination is set. Overrides ActivityDestinationInterface::isActiveInView
PluginBase::$configuration protected property Configuration information passed into the plugin. 1
PluginBase::$pluginDefinition protected property The plugin implementation definition. 1
PluginBase::$pluginId protected property The plugin_id.
PluginBase::DERIVATIVE_SEPARATOR constant A string which is used to separate base plugin IDs from the derivative ID.
PluginBase::getBaseId public function Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface::getBaseId
PluginBase::getDerivativeId public function Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface::getDerivativeId
PluginBase::getPluginDefinition public function Gets the definition of the plugin implementation. Overrides PluginInspectionInterface::getPluginDefinition 2
PluginBase::getPluginId public function Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface::getPluginId
PluginBase::isConfigurable public function Determines if the plugin is configurable.
PluginBase::__construct public function Constructs a \Drupal\Component\Plugin\PluginBase object. 98