social_auth_facebook.module in Open Social 8.9
Same filename and directory in other branches
- 8 modules/custom/social_auth_facebook/social_auth_facebook.module
- 8.2 modules/custom/social_auth_facebook/social_auth_facebook.module
- 8.3 modules/custom/social_auth_facebook/social_auth_facebook.module
- 8.4 modules/custom/social_auth_facebook/social_auth_facebook.module
- 8.5 modules/custom/social_auth_facebook/social_auth_facebook.module
- 8.6 modules/custom/social_auth_facebook/social_auth_facebook.module
- 8.7 modules/custom/social_auth_facebook/social_auth_facebook.module
- 8.8 modules/custom/social_auth_facebook/social_auth_facebook.module
Module file for Social Auth Facebook.
File
modules/custom/social_auth_facebook/social_auth_facebook.moduleView source
<?php
/**
* @file
* Module file for Social Auth Facebook.
*/
use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\Core\Field\BaseFieldDefinition;
/**
* Implements hook_entity_base_field_info().
*/
function social_auth_facebook_entity_base_field_info(EntityTypeInterface $entity_type) {
if ($entity_type
->id() == 'user') {
$fields['facebook_id'] = BaseFieldDefinition::create('string')
->setLabel(t('Facebook user ID'))
->setTranslatable(FALSE);
return $fields;
}
}
Functions
Name![]() |
Description |
---|---|
social_auth_facebook_entity_base_field_info | Implements hook_entity_base_field_info(). |