ActivityDestinationBase.php in Open Social 10.0.x
Same filename and directory in other branches
- 8.9 modules/custom/activity_creator/src/Plugin/ActivityDestinationBase.php
- 8 modules/custom/activity_creator/src/Plugin/ActivityDestinationBase.php
- 8.2 modules/custom/activity_creator/src/Plugin/ActivityDestinationBase.php
- 8.3 modules/custom/activity_creator/src/Plugin/ActivityDestinationBase.php
- 8.4 modules/custom/activity_creator/src/Plugin/ActivityDestinationBase.php
- 8.5 modules/custom/activity_creator/src/Plugin/ActivityDestinationBase.php
- 8.6 modules/custom/activity_creator/src/Plugin/ActivityDestinationBase.php
- 8.7 modules/custom/activity_creator/src/Plugin/ActivityDestinationBase.php
- 8.8 modules/custom/activity_creator/src/Plugin/ActivityDestinationBase.php
- 10.3.x modules/custom/activity_creator/src/Plugin/ActivityDestinationBase.php
- 10.1.x modules/custom/activity_creator/src/Plugin/ActivityDestinationBase.php
- 10.2.x modules/custom/activity_creator/src/Plugin/ActivityDestinationBase.php
Namespace
Drupal\activity_creator\PluginFile
modules/custom/activity_creator/src/Plugin/ActivityDestinationBase.phpView source
<?php
namespace Drupal\activity_creator\Plugin;
use Drupal\Component\Plugin\PluginBase;
/**
* Base class for Activity destination plugins.
*/
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;
}
}
Classes
Name | Description |
---|---|
ActivityDestinationBase | Base class for Activity destination plugins. |