public function CommentAllActivityEntityCondition::isValidEntityCondition in Open Social 8.3
Same name and namespace in other branches
- 8.9 modules/custom/activity_basics/src/Plugin/ActivityEntityCondition/CommentAllActivityEntityCondition.php \Drupal\activity_basics\Plugin\ActivityEntityCondition\CommentAllActivityEntityCondition::isValidEntityCondition()
- 8 modules/custom/activity_basics/src/Plugin/ActivityEntityCondition/CommentAllActivityEntityCondition.php \Drupal\activity_basics\Plugin\ActivityEntityCondition\CommentAllActivityEntityCondition::isValidEntityCondition()
- 8.2 modules/custom/activity_basics/src/Plugin/ActivityEntityCondition/CommentAllActivityEntityCondition.php \Drupal\activity_basics\Plugin\ActivityEntityCondition\CommentAllActivityEntityCondition::isValidEntityCondition()
- 8.4 modules/custom/activity_basics/src/Plugin/ActivityEntityCondition/CommentAllActivityEntityCondition.php \Drupal\activity_basics\Plugin\ActivityEntityCondition\CommentAllActivityEntityCondition::isValidEntityCondition()
- 8.5 modules/custom/activity_basics/src/Plugin/ActivityEntityCondition/CommentAllActivityEntityCondition.php \Drupal\activity_basics\Plugin\ActivityEntityCondition\CommentAllActivityEntityCondition::isValidEntityCondition()
- 8.6 modules/custom/activity_basics/src/Plugin/ActivityEntityCondition/CommentAllActivityEntityCondition.php \Drupal\activity_basics\Plugin\ActivityEntityCondition\CommentAllActivityEntityCondition::isValidEntityCondition()
- 8.7 modules/custom/activity_basics/src/Plugin/ActivityEntityCondition/CommentAllActivityEntityCondition.php \Drupal\activity_basics\Plugin\ActivityEntityCondition\CommentAllActivityEntityCondition::isValidEntityCondition()
- 8.8 modules/custom/activity_basics/src/Plugin/ActivityEntityCondition/CommentAllActivityEntityCondition.php \Drupal\activity_basics\Plugin\ActivityEntityCondition\CommentAllActivityEntityCondition::isValidEntityCondition()
- 10.3.x modules/custom/activity_basics/src/Plugin/ActivityEntityCondition/CommentAllActivityEntityCondition.php \Drupal\activity_basics\Plugin\ActivityEntityCondition\CommentAllActivityEntityCondition::isValidEntityCondition()
- 10.0.x modules/custom/activity_basics/src/Plugin/ActivityEntityCondition/CommentAllActivityEntityCondition.php \Drupal\activity_basics\Plugin\ActivityEntityCondition\CommentAllActivityEntityCondition::isValidEntityCondition()
- 10.1.x modules/custom/activity_basics/src/Plugin/ActivityEntityCondition/CommentAllActivityEntityCondition.php \Drupal\activity_basics\Plugin\ActivityEntityCondition\CommentAllActivityEntityCondition::isValidEntityCondition()
- 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\ActivityEntityConditionCode
public function isValidEntityCondition($entity) {
if ($entity
->getEntityTypeId() === 'comment') {
return TRUE;
}
return FALSE;
}