class TweetVisibleConstraint in Media entity Twitter 8
Checks if a Tweet is publicly visible.
Plugin annotation
@Constraint(
id = "TweetVisible",
label = @Translation("Tweet publicly visible", context = "Validation"),
type = { "entity", "entity_reference", "string", "string_long" }
)
Hierarchy
- class \Drupal\media_entity_twitter\Plugin\Validation\Constraint\TweetVisibleConstraint extends \Symfony\Component\Validator\Constraint
Expanded class hierarchy of TweetVisibleConstraint
1 file declares its use of TweetVisibleConstraint
- ConstraintsTest.php in tests/
src/ Unit/ ConstraintsTest.php
File
- src/
Plugin/ Validation/ Constraint/ TweetVisibleConstraint.php, line 16
Namespace
Drupal\media_entity_twitter\Plugin\Validation\ConstraintView source
class TweetVisibleConstraint extends Constraint {
/**
* The default violation message.
*
* @var string
*/
public $message = 'Referenced tweet is not publicly visible.';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TweetVisibleConstraint:: |
public | property | The default violation message. |