public function ColorCSS::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/ColorCSS.php \Drupal\social_branding\Plugin\GraphQL\DataProducer\ColorCSS::resolve()
Returns the CSS color.
Parameters
\Drupal\social_branding\Wrappers\Color $color: The branding color.
Return value
string The branding color CSS codification.
File
- modules/
social_features/ social_branding/ src/ Plugin/ GraphQL/ DataProducer/ ColorCSS.php, line 37
Class
- ColorCSS
- The CSS color.
Namespace
Drupal\social_branding\Plugin\GraphQL\DataProducerCode
public function resolve(Color $color) : string {
return $color
->css();
}