4
votes
Check access to entity for logged in user in Drupal 8
I have tested the entity access and $entity->access('view', $account); that worked in my case. I earlier used the optional $account parameter so that it could check the currently logged in user.
I ...
3
votes
Accepted
How to flip order of Privatemsg thread from ASC to DESC?
Any other ways I can get it to work, outside of hacking the module?
There is no way to alter a module from another php file / module unless it provides a hook, luckily here they did.
I must be blind,...
3
votes
Drupal private messages database table design
In general with Drupal you want to avoid directly querying the database if you didn't create the tables yourself. Instead try to use functions provided by core or the module to get the data for you. ...
2
votes
Check access to entity for logged in user in Drupal 8
You can check annotations of those entities and find access handler.
e.g.
/**
* Defines the Private Message Thread entity.
*
* @ContentEntityType(
* id = "private_message_thread",
* label =...
1
vote
Link to send message is not displayed
DrupalGap's implementation of Private Message has not evolved enough to take into consideration any Private Message configuration set on a DrupalGap Manage Display page for User Entities.
That being ...
1
vote
Howto override a function in privatemsg.module?
The _privatemsg_format_participants() function is called from template_preprocess_privatemsg_recipients() function, which is a template preprocess hook. You can simply override ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
privatemsg × 1187 × 43
users × 12
rules × 11
views × 9
theming × 4
forms × 4
blocks × 4
6 × 4
ajax × 4
emails × 4
services × 4
notifications × 4
entities × 3
flags × 3
actions × 3
8 × 2
nodes × 2
javascript × 2
hooks × 2
routes × 2
organic-groups × 2
tokens × 2
commerce × 1
database × 1