public function CommentReplyActivityEntityCondition::isValidEntityCondition in Open Social 10.1.x
Same name and namespace in other branches
- 8.9 modules/custom/activity_basics/src/Plugin/ActivityEntityCondition/CommentReplyActivityEntityCondition.php \Drupal\activity_basics\Plugin\ActivityEntityCondition\CommentReplyActivityEntityCondition::isValidEntityCondition()
- 8 modules/custom/activity_basics/src/Plugin/ActivityEntityCondition/CommentReplyActivityEntityCondition.php \Drupal\activity_basics\Plugin\ActivityEntityCondition\CommentReplyActivityEntityCondition::isValidEntityCondition()
- 8.2 modules/custom/activity_basics/src/Plugin/ActivityEntityCondition/CommentReplyActivityEntityCondition.php \Drupal\activity_basics\Plugin\ActivityEntityCondition\CommentReplyActivityEntityCondition::isValidEntityCondition()
- 8.3 modules/custom/activity_basics/src/Plugin/ActivityEntityCondition/CommentReplyActivityEntityCondition.php \Drupal\activity_basics\Plugin\ActivityEntityCondition\CommentReplyActivityEntityCondition::isValidEntityCondition()
- 8.4 modules/custom/activity_basics/src/Plugin/ActivityEntityCondition/CommentReplyActivityEntityCondition.php \Drupal\activity_basics\Plugin\ActivityEntityCondition\CommentReplyActivityEntityCondition::isValidEntityCondition()
- 8.5 modules/custom/activity_basics/src/Plugin/ActivityEntityCondition/CommentReplyActivityEntityCondition.php \Drupal\activity_basics\Plugin\ActivityEntityCondition\CommentReplyActivityEntityCondition::isValidEntityCondition()
- 8.6 modules/custom/activity_basics/src/Plugin/ActivityEntityCondition/CommentReplyActivityEntityCondition.php \Drupal\activity_basics\Plugin\ActivityEntityCondition\CommentReplyActivityEntityCondition::isValidEntityCondition()
- 8.7 modules/custom/activity_basics/src/Plugin/ActivityEntityCondition/CommentReplyActivityEntityCondition.php \Drupal\activity_basics\Plugin\ActivityEntityCondition\CommentReplyActivityEntityCondition::isValidEntityCondition()
- 8.8 modules/custom/activity_basics/src/Plugin/ActivityEntityCondition/CommentReplyActivityEntityCondition.php \Drupal\activity_basics\Plugin\ActivityEntityCondition\CommentReplyActivityEntityCondition::isValidEntityCondition()
- 10.3.x modules/custom/activity_basics/src/Plugin/ActivityEntityCondition/CommentReplyActivityEntityCondition.php \Drupal\activity_basics\Plugin\ActivityEntityCondition\CommentReplyActivityEntityCondition::isValidEntityCondition()
- 10.0.x modules/custom/activity_basics/src/Plugin/ActivityEntityCondition/CommentReplyActivityEntityCondition.php \Drupal\activity_basics\Plugin\ActivityEntityCondition\CommentReplyActivityEntityCondition::isValidEntityCondition()
- 10.2.x modules/custom/activity_basics/src/Plugin/ActivityEntityCondition/CommentReplyActivityEntityCondition.php \Drupal\activity_basics\Plugin\ActivityEntityCondition\CommentReplyActivityEntityCondition::isValidEntityCondition()
Checks if this is a valid entity condition for the action.
Overrides ActivityEntityConditionBase::isValidEntityCondition
File
- modules/
custom/ activity_basics/ src/ Plugin/ ActivityEntityCondition/ CommentReplyActivityEntityCondition.php, line 21
Class
- CommentReplyActivityEntityCondition
- Provides a 'CommentReply' activity condition.
Namespace
Drupal\activity_basics\Plugin\ActivityEntityConditionCode
public function isValidEntityCondition($entity) {
if ($entity
->getEntityTypeId() === 'comment') {
if (!empty($entity
->getParentComment())) {
return TRUE;
}
}
return FALSE;
}