public function PlatformBrandingLogoUrl::resolve in Open Social 10.2.x
Returns platform branding logo url.
Parameters
\Drupal\Core\Config\ImmutableConfig $platform_branding: The platform branding configuration.
Return value
string|null The string with platform branding logo url.
File
- modules/
social_features/ social_branding/ src/ Plugin/ GraphQL/ DataProducer/ PlatformBrandingLogoUrl.php, line 76
Class
- PlatformBrandingLogoUrl
- Gets the platform branding logo url.
Namespace
Drupal\social_branding\Plugin\GraphQL\DataProducerCode
public function resolve(ImmutableConfig $platform_branding) : ?string {
if ($platform_branding
->get('default') === 'socialblue') {
if ($this->config
->get('socialblue.settings')
->get('logo.path')) {
$wrapper = \Drupal::service('stream_wrapper_manager')
->getViaUri($this->config
->get('socialblue.settings')
->get('logo.path'));
return $wrapper
->getExternalUrl();
}
}
return NULL;
}