abstract class ActivityDestinationBase in Open Social 10.3.x
Same name and namespace in other branches
- 8.9 modules/custom/activity_creator/src/Plugin/ActivityDestinationBase.php \Drupal\activity_creator\Plugin\ActivityDestinationBase
- 8 modules/custom/activity_creator/src/Plugin/ActivityDestinationBase.php \Drupal\activity_creator\Plugin\ActivityDestinationBase
- 8.2 modules/custom/activity_creator/src/Plugin/ActivityDestinationBase.php \Drupal\activity_creator\Plugin\ActivityDestinationBase
- 8.3 modules/custom/activity_creator/src/Plugin/ActivityDestinationBase.php \Drupal\activity_creator\Plugin\ActivityDestinationBase
- 8.4 modules/custom/activity_creator/src/Plugin/ActivityDestinationBase.php \Drupal\activity_creator\Plugin\ActivityDestinationBase
- 8.5 modules/custom/activity_creator/src/Plugin/ActivityDestinationBase.php \Drupal\activity_creator\Plugin\ActivityDestinationBase
- 8.6 modules/custom/activity_creator/src/Plugin/ActivityDestinationBase.php \Drupal\activity_creator\Plugin\ActivityDestinationBase
- 8.7 modules/custom/activity_creator/src/Plugin/ActivityDestinationBase.php \Drupal\activity_creator\Plugin\ActivityDestinationBase
- 8.8 modules/custom/activity_creator/src/Plugin/ActivityDestinationBase.php \Drupal\activity_creator\Plugin\ActivityDestinationBase
- 10.0.x modules/custom/activity_creator/src/Plugin/ActivityDestinationBase.php \Drupal\activity_creator\Plugin\ActivityDestinationBase
- 10.1.x modules/custom/activity_creator/src/Plugin/ActivityDestinationBase.php \Drupal\activity_creator\Plugin\ActivityDestinationBase
- 10.2.x modules/custom/activity_creator/src/Plugin/ActivityDestinationBase.php \Drupal\activity_creator\Plugin\ActivityDestinationBase
Base class for Activity destination plugins.
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\activity_creator\Plugin\ActivityDestinationBase implements ActivityDestinationInterface
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
File
- modules/
custom/ activity_creator/ src/ Plugin/ ActivityDestinationBase.php, line 10
Namespace
Drupal\activity_creator\PluginView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ActivityDestinationBase:: |
public | function |
Returns a view mode for the entity. Overrides ActivityDestinationInterface:: |
|
ActivityDestinationBase:: |
public | function |
True or false if the activity destination is set. Overrides ActivityDestinationInterface:: |
|
PluginBase:: |
protected | property | Configuration information passed into the plugin. | 1 |
PluginBase:: |
protected | property | The plugin implementation definition. | 1 |
PluginBase:: |
protected | property | The plugin_id. | |
PluginBase:: |
constant | A string which is used to separate base plugin IDs from the derivative ID. | ||
PluginBase:: |
public | function |
Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the definition of the plugin implementation. Overrides PluginInspectionInterface:: |
2 |
PluginBase:: |
public | function |
Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface:: |
|
PluginBase:: |
public | function | Determines if the plugin is configurable. | |
PluginBase:: |
public | function | Constructs a \Drupal\Component\Plugin\PluginBase object. | 98 |