protected function Mail::checkForwardIntegration in Social simple 2.0.x
Same name and namespace in other branches
- 8 src/SocialNetwork/Mail.php \Drupal\social_simple\SocialNetwork\Mail::checkForwardIntegration()
Check if the mail button should use the forward module.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity which will be shared.
Return value
boolean True if the Mail button should use the Forward module.
1 call to Mail::checkForwardIntegration()
- Mail::getShareLink in src/
SocialNetwork/ Mail.php - Checks whether the given transition is allowed.
File
- src/
SocialNetwork/ Mail.php, line 103
Class
- The Mail button.
Namespace
Drupal\social_simple\SocialNetworkCode
protected function checkForwardIntegration(EntityInterface $entity) {
if (!$this->moduleHandler
->moduleExists('forward')) {
return FALSE;
}
/** @var \Drupal\Core\Config\Entity\ConfigEntityInterface $entity_type */
$entity_type = $entity->type->entity;
if (!$entity_type instanceof ConfigEntityInterface) {
return FALSE;
}
return $entity_type
->getThirdPartySetting('social_simple', 'forward_integration', FALSE);
}