public function ColorRed::resolve in Open Social 10.3.x
Same name and namespace in other branches
- 10.2.x modules/social_features/social_branding/src/Plugin/GraphQL/DataProducer/ColorRed.php \Drupal\social_branding\Plugin\GraphQL\DataProducer\ColorRed::resolve()
Returns the color red component.
Parameters
\Drupal\social_branding\Wrappers\Color $color: The color.
Return value
int The color red component.
File
- modules/
social_features/ social_branding/ src/ Plugin/ GraphQL/ DataProducer/ ColorRed.php, line 37
Class
- ColorRed
- The red component from color.
Namespace
Drupal\social_branding\Plugin\GraphQL\DataProducerCode
public function resolve(Color $color) : int {
return $color
->red();
}