You are here

public function ActivityDestinationBase::isActiveInView in Open Social 8

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

True or false if the activity destination is set.

Overrides ActivityDestinationInterface::isActiveInView

File

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

Class

ActivityDestinationBase
Base class for Activity destination plugins.

Namespace

Drupal\activity_creator\Plugin

Code

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;
}