public function GroupContentInMyGroupActivityContext::isValidEntity in Open Social 8.6
Same name and namespace in other branches
- 8.9 modules/custom/activity_basics/src/Plugin/ActivityContext/GroupContentInMyGroupActivityContext.php \Drupal\activity_basics\Plugin\ActivityContext\GroupContentInMyGroupActivityContext::isValidEntity()
- 8.4 modules/custom/activity_basics/src/Plugin/ActivityContext/GroupContentInMyGroupActivityContext.php \Drupal\activity_basics\Plugin\ActivityContext\GroupContentInMyGroupActivityContext::isValidEntity()
- 8.5 modules/custom/activity_basics/src/Plugin/ActivityContext/GroupContentInMyGroupActivityContext.php \Drupal\activity_basics\Plugin\ActivityContext\GroupContentInMyGroupActivityContext::isValidEntity()
- 8.7 modules/custom/activity_basics/src/Plugin/ActivityContext/GroupContentInMyGroupActivityContext.php \Drupal\activity_basics\Plugin\ActivityContext\GroupContentInMyGroupActivityContext::isValidEntity()
- 8.8 modules/custom/activity_basics/src/Plugin/ActivityContext/GroupContentInMyGroupActivityContext.php \Drupal\activity_basics\Plugin\ActivityContext\GroupContentInMyGroupActivityContext::isValidEntity()
- 10.3.x modules/custom/activity_basics/src/Plugin/ActivityContext/GroupContentInMyGroupActivityContext.php \Drupal\activity_basics\Plugin\ActivityContext\GroupContentInMyGroupActivityContext::isValidEntity()
- 10.0.x modules/custom/activity_basics/src/Plugin/ActivityContext/GroupContentInMyGroupActivityContext.php \Drupal\activity_basics\Plugin\ActivityContext\GroupContentInMyGroupActivityContext::isValidEntity()
- 10.1.x modules/custom/activity_basics/src/Plugin/ActivityContext/GroupContentInMyGroupActivityContext.php \Drupal\activity_basics\Plugin\ActivityContext\GroupContentInMyGroupActivityContext::isValidEntity()
- 10.2.x modules/custom/activity_basics/src/Plugin/ActivityContext/GroupContentInMyGroupActivityContext.php \Drupal\activity_basics\Plugin\ActivityContext\GroupContentInMyGroupActivityContext::isValidEntity()
Determines if the entity is valid for this context.
Overrides ActivityContextBase::isValidEntity
File
- modules/
custom/ activity_basics/ src/ Plugin/ ActivityContext/ GroupContentInMyGroupActivityContext.php, line 122
Class
- GroupContentInMyGroupActivityContext
- Provides a 'GroupContentInMyGroupActivityContext' acitivy context.
Namespace
Drupal\activity_basics\Plugin\ActivityContextCode
public function isValidEntity($entity) {
/** @var \Drupal\Core\Entity\EntityInterface $entity */
return $entity
->getEntityTypeId() === 'group_content';
}