protected function JsonapiHelper::isUserOrConfigEntity in Entity Share 8
Same name and namespace in other branches
- 8.2 modules/entity_share_client/src/Service/JsonapiHelper.php \Drupal\entity_share_client\Service\JsonapiHelper::isUserOrConfigEntity()
Helper function to check if an entity type id is a user or a config entity.
Parameters
string $entity_type_id: The entity type id.
Return value
bool TRUE if the entity type is user or a config entity. FALSE otherwise.
1 call to JsonapiHelper::isUserOrConfigEntity()
- JsonapiHelper::relationshipHandleable in modules/
entity_share_client/ src/ Service/ JsonapiHelper.php - Check if a relationship is handleable.
File
- modules/
entity_share_client/ src/ Service/ JsonapiHelper.php, line 752
Class
- JsonapiHelper
- Class JsonapiHelper.
Namespace
Drupal\entity_share_client\ServiceCode
protected function isUserOrConfigEntity($entity_type_id) {
if ($entity_type_id == 'user') {
return TRUE;
}
elseif ($this->entityDefinitions[$entity_type_id]
->getGroup() == 'configuration') {
return TRUE;
}
return FALSE;
}