We've added a field to the user (Program Id), and we're trying to filter a user view showing the users whose Program Id is the same as the logged in user. Is there any way to do this via the Views UI, or is this going to require programmatically creating a filter, and if the latter, how do I go about doing it?
I created a sub-profile that is supposed to add a content type, fields for the content type, a view that lists nodes of the content type, and even a link to the view from the Admin/Configuration menu. I have a config/install directory with the yml files for creating everything, as well as the info.yml, .install, and .profile files.
My boss created a custom distribution as a base Drupal install. The sub-profile that I created is supposed to give that base installation a specific purpose.
Hi, I created a custom entity with these fields: id, uuid, name, user_id.
I try to print the value of user_id in admin but without results.
$entity->get('user_id')->value
$entity->get('user_id')->getValue()
$entity->user_id->value
Nothing, I can't access the value, while for the other fields I have no problem.