StripTags
- Type
- Class
- Namespace
- craft\gql\directives
- Inherits
- craft\gql\directives\StripTags »
craft\gql\base\Directive »
GraphQL\Type\Definition\Directive
- Since
- 4.5.4
StripTags GraphQL Directive
View source (opens new window)
# Public Methods
Method | Description |
---|---|
apply() | Apply the directive to the value with arguments |
create() | Return an instance of the directive |
name() | Return the directive's name |
# apply()
Apply the directive to the value with arguments
View source (opens new window)
Arguments
$source
(mixed
) – The original source from which the value was resolved$value
(mixed
) – The value that was resolved$arguments
(array (opens new window)) – For the directive$resolveInfo
(\GraphQL\Type\Definition\ResolveInfo
) – Resolve info object
Returns
mixed
# create()
Return an instance of the directive
View source (opens new window)
Returns
\GraphQL\Type\Definition\Directive
– $directive
# name()
Return the directive's name
View source (opens new window)
Returns
string (opens new window) – $name