You are here

public function CommentAllActivityEntityCondition::isValidEntityCondition in Open Social 8.8

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

Checks if this is a valid entity condition for the action.

Overrides ActivityEntityConditionBase::isValidEntityCondition

File

modules/custom/activity_basics/src/Plugin/ActivityEntityCondition/CommentAllActivityEntityCondition.php, line 21

Class

CommentAllActivityEntityCondition
Provides a 'CommentReply' activity condition.

Namespace

Drupal\activity_basics\Plugin\ActivityEntityCondition

Code

public function isValidEntityCondition($entity) {
  if ($entity
    ->getEntityTypeId() === 'comment') {
    return TRUE;
  }
  return FALSE;
}