class UserOrganization in Open Social 10.0.x
Same name and namespace in other branches
- 8.9 modules/social_features/social_user_export/src/Plugin/UserExportPlugin/UserOrganization.php \Drupal\social_user_export\Plugin\UserExportPlugin\UserOrganization
- 8.3 modules/social_features/social_user_export/src/Plugin/UserExportPlugin/UserOrganization.php \Drupal\social_user_export\Plugin\UserExportPlugin\UserOrganization
- 8.4 modules/social_features/social_user_export/src/Plugin/UserExportPlugin/UserOrganization.php \Drupal\social_user_export\Plugin\UserExportPlugin\UserOrganization
- 8.5 modules/social_features/social_user_export/src/Plugin/UserExportPlugin/UserOrganization.php \Drupal\social_user_export\Plugin\UserExportPlugin\UserOrganization
- 8.6 modules/social_features/social_user_export/src/Plugin/UserExportPlugin/UserOrganization.php \Drupal\social_user_export\Plugin\UserExportPlugin\UserOrganization
- 8.7 modules/social_features/social_user_export/src/Plugin/UserExportPlugin/UserOrganization.php \Drupal\social_user_export\Plugin\UserExportPlugin\UserOrganization
- 8.8 modules/social_features/social_user_export/src/Plugin/UserExportPlugin/UserOrganization.php \Drupal\social_user_export\Plugin\UserExportPlugin\UserOrganization
- 10.3.x modules/social_features/social_user_export/src/Plugin/UserExportPlugin/UserOrganization.php \Drupal\social_user_export\Plugin\UserExportPlugin\UserOrganization
- 10.1.x modules/social_features/social_user_export/src/Plugin/UserExportPlugin/UserOrganization.php \Drupal\social_user_export\Plugin\UserExportPlugin\UserOrganization
- 10.2.x modules/social_features/social_user_export/src/Plugin/UserExportPlugin/UserOrganization.php \Drupal\social_user_export\Plugin\UserExportPlugin\UserOrganization
Provides a 'UserOrganization' user export row.
Plugin annotation
@UserExportPlugin(
id = "user_organization",
label = @Translation("Organization"),
weight = -320,
)
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\social_user_export\Plugin\UserExportPluginBase implements ContainerFactoryPluginInterface, UserExportPluginInterface uses StringTranslationTrait
- class \Drupal\social_user_export\Plugin\UserExportPlugin\UserOrganization
- class \Drupal\social_user_export\Plugin\UserExportPluginBase implements ContainerFactoryPluginInterface, UserExportPluginInterface uses StringTranslationTrait
Expanded class hierarchy of UserOrganization
File
- modules/
social_features/ social_user_export/ src/ Plugin/ UserExportPlugin/ UserOrganization.php, line 17
Namespace
Drupal\social_user_export\Plugin\UserExportPluginView source
class UserOrganization extends UserExportPluginBase {
/**
* {@inheritdoc}
*/
public function getHeader() {
return $this
->t('Organization');
}
/**
* Returns the value.
*
* @param \Drupal\user\UserInterface $entity
* The User entity to get the value from.
*
* @return string
* The value.
*/
public function getValue(UserInterface $entity) {
return $this
->profileGetFieldValue('field_profile_organization', $this
->getProfile($entity));
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PluginBase:: |
protected | property | Configuration information passed into the plugin. | 1 |
PluginBase:: |
protected | property | The plugin implementation definition. | 1 |
PluginBase:: |
protected | property | The plugin_id. | |
PluginBase:: |
constant | A string which is used to separate base plugin IDs from the derivative ID. | ||
PluginBase:: |
public | function |
Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the definition of the plugin implementation. Overrides PluginInspectionInterface:: |
2 |
PluginBase:: |
public | function |
Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface:: |
|
PluginBase:: |
public | function | Determines if the plugin is configurable. | |
StringTranslationTrait:: |
protected | property | The string translation service. | 4 |
StringTranslationTrait:: |
protected | function | Formats a string containing a count of items. | |
StringTranslationTrait:: |
protected | function | Returns the number of plurals supported by a given language. | |
StringTranslationTrait:: |
protected | function | Gets the string translation service. | |
StringTranslationTrait:: |
public | function | Sets the string translation service to use. | 2 |
StringTranslationTrait:: |
protected | function | Translates a string to the current language or to a given language. | |
UserExportPluginBase:: |
public | property | The database. | |
UserExportPluginBase:: |
public | property | The date formatter. | |
UserExportPluginBase:: |
public | property | The entity type manager. | |
UserExportPluginBase:: |
public static | function |
The create method. Overrides ContainerFactoryPluginInterface:: |
4 |
UserExportPluginBase:: |
public | function |
Get the Profile entity. Overrides UserExportPluginInterface:: |
|
UserExportPluginBase:: |
public | function |
Returns the value for the address field and element within address. Overrides UserExportPluginInterface:: |
|
UserExportPluginBase:: |
public | function |
Returns the value of a field for a given profile. Overrides UserExportPluginInterface:: |
|
UserExportPluginBase:: |
public | function |
Returns the values of a taxonomy reference field. Overrides UserExportPluginInterface:: |
|
UserExportPluginBase:: |
public | function |
UserExportPluginBase constructor. Overrides PluginBase:: |
4 |
UserOrganization:: |
public | function |
Returns the header. Overrides UserExportPluginBase:: |
|
UserOrganization:: |
public | function |
Returns the value. Overrides UserExportPluginBase:: |