WebsiteUrl.php in Open Social 8.6
Same filename and directory in other branches
- 8.9 modules/custom/social_lets_connect/modules/social_lets_connect_usage/src/Plugin/ShareUsageDataPlugin/WebsiteUrl.php
- 8.5 modules/custom/social_lets_connect/modules/social_lets_connect_usage/src/Plugin/ShareUsageDataPlugin/WebsiteUrl.php
- 8.7 modules/custom/social_lets_connect/modules/social_lets_connect_usage/src/Plugin/ShareUsageDataPlugin/WebsiteUrl.php
- 8.8 modules/custom/social_lets_connect/modules/social_lets_connect_usage/src/Plugin/ShareUsageDataPlugin/WebsiteUrl.php
- 10.3.x modules/custom/social_lets_connect/modules/social_lets_connect_usage/src/Plugin/ShareUsageDataPlugin/WebsiteUrl.php
- 10.0.x modules/custom/social_lets_connect/modules/social_lets_connect_usage/src/Plugin/ShareUsageDataPlugin/WebsiteUrl.php
- 10.1.x modules/custom/social_lets_connect/modules/social_lets_connect_usage/src/Plugin/ShareUsageDataPlugin/WebsiteUrl.php
- 10.2.x modules/custom/social_lets_connect/modules/social_lets_connect_usage/src/Plugin/ShareUsageDataPlugin/WebsiteUrl.php
File
modules/custom/social_lets_connect/modules/social_lets_connect_usage/src/Plugin/ShareUsageDataPlugin/WebsiteUrl.phpView source
<?php
namespace Drupal\social_lets_connect_usage\Plugin\ShareUsageDataPlugin;
use Drupal\social_lets_connect_usage\Plugin\ShareUsageDataPluginBase;
/**
* Provides a 'WebsiteUrl' share usage data plugin.
*
* @ShareUsageDataPlugin(
* id = "website_url",
* label = @Translation("Website URL"),
* setting = "website_url",
* weight = -460,
* )
*/
class WebsiteUrl extends ShareUsageDataPluginBase {
/**
* Get the value.
*
* @return array
* $json array.
*/
public function getValue() {
global $base_url;
return [
'url' => $base_url,
];
}
}
Classes
Name | Description |
---|---|
WebsiteUrl | Provides a 'WebsiteUrl' share usage data plugin. |