How to add condition to view using views_query_alter

Hi team

i would like to add a 'AND' condition to my view query, i've created a hook with views_query_alter, something like this:
 

How to remove condition view using views_query_alter

Hi team

I've created a json rest api with views but i need to show items when its published, unpublished and all content, so when i use status = 1 show me published, status = 0 show me unpublished, but when i use status = All i need to show all content, but just this is not working, so i decided to use views_query_alter to change that, and delete this condition, but is not working.

This is how i'm using this hook:

Webform view : access submission data

Hello, 

I use Drupal 8.x and I wanted to display my webform submission data in a view.
I saw that the webform_views module (module) is necessary. I installed it, and it broke my site haha. Fortunately it was a test project.......

Is there another way to display submission data ?

Files in some folders are renamed the add "._sa.zip"

Hi there, I'm not very surpried by this problem, but it seems that there is a prozess which renamed files (for example in the libraries or main folder) with the extension "._sa.zip". Actually it is enough to rename them by deleting this appendix. 

The files seem not really been zipped.

Of course this behavior brakes some parts of my Drupal installation. I'm using Drupal 8.9.13. Because I couldn't find this problem somewhere else, I have to ask here...

Webform : update field after submission using a handler (or else)

Hello every one, 

I am in the current situation : I have a Webform with a hidden field (it's a text field hidden using a condition).
I would like to update the content of this text field only if the user role is a specific role. I thought about using a handler. However, I don't know the code to use to check field and role value, and then assign a new value to a field.

Has someone already had in the same need ?

Methods to Access Group module GROUP properties programmatically

Not sure where and who should I ask this "primitive" question.

Drupal 8.9.13 | Using Group module Version: 8.x-1.3

Getting groups programmatically: $groups = \Drupal\group\Entity\Group::loadMultiple();

Browsing through $groups array programmatically: foreach($groups as $group){echo(print_r($group, TRUE));}

Getting the whole structure:

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x