SystemData.php in Open Social 10.1.x
Same filename and directory in other branches
- 8.9 modules/custom/social_lets_connect/modules/social_lets_connect_usage/src/Plugin/ShareUsageDataPlugin/SystemData.php
- 8.5 modules/custom/social_lets_connect/modules/social_lets_connect_usage/src/Plugin/ShareUsageDataPlugin/SystemData.php
- 8.6 modules/custom/social_lets_connect/modules/social_lets_connect_usage/src/Plugin/ShareUsageDataPlugin/SystemData.php
- 8.7 modules/custom/social_lets_connect/modules/social_lets_connect_usage/src/Plugin/ShareUsageDataPlugin/SystemData.php
- 8.8 modules/custom/social_lets_connect/modules/social_lets_connect_usage/src/Plugin/ShareUsageDataPlugin/SystemData.php
- 10.3.x modules/custom/social_lets_connect/modules/social_lets_connect_usage/src/Plugin/ShareUsageDataPlugin/SystemData.php
- 10.0.x modules/custom/social_lets_connect/modules/social_lets_connect_usage/src/Plugin/ShareUsageDataPlugin/SystemData.php
- 10.2.x modules/custom/social_lets_connect/modules/social_lets_connect_usage/src/Plugin/ShareUsageDataPlugin/SystemData.php
File
modules/custom/social_lets_connect/modules/social_lets_connect_usage/src/Plugin/ShareUsageDataPlugin/SystemData.phpView source
<?php
namespace Drupal\social_lets_connect_usage\Plugin\ShareUsageDataPlugin;
use Drupal\social_lets_connect_usage\Plugin\ShareUsageDataPluginBase;
/**
* Provides a 'SystemData' share usage data plugin.
*
* @ShareUsageDataPlugin(
* id = "system_data",
* label = @Translation("System data"),
* setting = "system_data",
* weight = -430,
* )
*/
class SystemData extends ShareUsageDataPluginBase {
/**
* Get the value.
*
* @return array
* $json array.
*/
public function getValue() {
$info = [
'php' => [
'version' => [
'version' => PHP_VERSION,
'major_minor' => PHP_MAJOR_VERSION . '.' . PHP_MINOR_VERSION,
],
'info' => [
'extensions' => get_loaded_extensions(),
],
],
'os' => [
php_uname(),
],
];
return $info;
}
}
Classes
Name | Description |
---|---|
SystemData | Provides a 'SystemData' share usage data plugin. |