CommentAllActivityEntityCondition.php in Open Social 8.5
Same filename and directory in other branches
- 8.9 modules/custom/activity_basics/src/Plugin/ActivityEntityCondition/CommentAllActivityEntityCondition.php
- 8 modules/custom/activity_basics/src/Plugin/ActivityEntityCondition/CommentAllActivityEntityCondition.php
- 8.2 modules/custom/activity_basics/src/Plugin/ActivityEntityCondition/CommentAllActivityEntityCondition.php
- 8.3 modules/custom/activity_basics/src/Plugin/ActivityEntityCondition/CommentAllActivityEntityCondition.php
- 8.4 modules/custom/activity_basics/src/Plugin/ActivityEntityCondition/CommentAllActivityEntityCondition.php
- 8.6 modules/custom/activity_basics/src/Plugin/ActivityEntityCondition/CommentAllActivityEntityCondition.php
- 8.7 modules/custom/activity_basics/src/Plugin/ActivityEntityCondition/CommentAllActivityEntityCondition.php
- 8.8 modules/custom/activity_basics/src/Plugin/ActivityEntityCondition/CommentAllActivityEntityCondition.php
- 10.3.x modules/custom/activity_basics/src/Plugin/ActivityEntityCondition/CommentAllActivityEntityCondition.php
- 10.0.x modules/custom/activity_basics/src/Plugin/ActivityEntityCondition/CommentAllActivityEntityCondition.php
- 10.1.x modules/custom/activity_basics/src/Plugin/ActivityEntityCondition/CommentAllActivityEntityCondition.php
- 10.2.x modules/custom/activity_basics/src/Plugin/ActivityEntityCondition/CommentAllActivityEntityCondition.php
File
modules/custom/activity_basics/src/Plugin/ActivityEntityCondition/CommentAllActivityEntityCondition.phpView source
<?php
namespace Drupal\activity_basics\Plugin\ActivityEntityCondition;
use Drupal\activity_creator\Plugin\ActivityEntityConditionBase;
/**
* Provides a 'CommentReply' activity condition.
*
* @ActivityEntityCondition(
* id = "comment_all",
* label = @Translation("All comments"),
* entities = {"comment" = {}}
* )
*/
class CommentAllActivityEntityCondition extends ActivityEntityConditionBase {
/**
* {@inheritdoc}
*/
public function isValidEntityCondition($entity) {
if ($entity
->getEntityTypeId() === 'comment') {
return TRUE;
}
return FALSE;
}
}
Classes
Name | Description |
---|---|
CommentAllActivityEntityCondition | Provides a 'CommentReply' activity condition. |