public function VoteActivityContext::isValidEntity in Open Social 8.6
Same name and namespace in other branches
- 8.9 modules/social_features/social_like/src/Plugin/ActivityContext/VoteActivityContext.php \Drupal\social_like\Plugin\ActivityContext\VoteActivityContext::isValidEntity()
- 8 modules/social_features/social_like/src/Plugin/ActivityContext/VoteActivityContext.php \Drupal\social_like\Plugin\ActivityContext\VoteActivityContext::isValidEntity()
- 8.2 modules/social_features/social_like/src/Plugin/ActivityContext/VoteActivityContext.php \Drupal\social_like\Plugin\ActivityContext\VoteActivityContext::isValidEntity()
- 8.3 modules/social_features/social_like/src/Plugin/ActivityContext/VoteActivityContext.php \Drupal\social_like\Plugin\ActivityContext\VoteActivityContext::isValidEntity()
- 8.4 modules/social_features/social_like/src/Plugin/ActivityContext/VoteActivityContext.php \Drupal\social_like\Plugin\ActivityContext\VoteActivityContext::isValidEntity()
- 8.5 modules/social_features/social_like/src/Plugin/ActivityContext/VoteActivityContext.php \Drupal\social_like\Plugin\ActivityContext\VoteActivityContext::isValidEntity()
- 8.7 modules/social_features/social_like/src/Plugin/ActivityContext/VoteActivityContext.php \Drupal\social_like\Plugin\ActivityContext\VoteActivityContext::isValidEntity()
- 8.8 modules/social_features/social_like/src/Plugin/ActivityContext/VoteActivityContext.php \Drupal\social_like\Plugin\ActivityContext\VoteActivityContext::isValidEntity()
- 10.3.x modules/social_features/social_like/src/Plugin/ActivityContext/VoteActivityContext.php \Drupal\social_like\Plugin\ActivityContext\VoteActivityContext::isValidEntity()
- 10.0.x modules/social_features/social_like/src/Plugin/ActivityContext/VoteActivityContext.php \Drupal\social_like\Plugin\ActivityContext\VoteActivityContext::isValidEntity()
- 10.1.x modules/social_features/social_like/src/Plugin/ActivityContext/VoteActivityContext.php \Drupal\social_like\Plugin\ActivityContext\VoteActivityContext::isValidEntity()
- 10.2.x modules/social_features/social_like/src/Plugin/ActivityContext/VoteActivityContext.php \Drupal\social_like\Plugin\ActivityContext\VoteActivityContext::isValidEntity()
Check if it's valid.
Overrides ActivityContextBase::isValidEntity
File
- modules/
social_features/ social_like/ src/ Plugin/ ActivityContext/ VoteActivityContext.php, line 53
Class
- VoteActivityContext
- Provides a 'VoteActivityContext' activity context.
Namespace
Drupal\social_like\Plugin\ActivityContextCode
public function isValidEntity($entity) {
if ($entity
->getEntityTypeId() === 'vote') {
return TRUE;
}
return FALSE;
}