I am trying to set up an exposed filter in a view in my module that lets a user filter content based on a drop-down menu containing the U.S. State that the content creator's username is registered in. I am not sure how I can go about creating a join in the query.
In the database, I can get the data I need by running the following query:
Select
*
From
node_field_data Inner Join
users On node_field_data.uid = users.uid Inner Join
user__field_state On users.uid = user__field_state.entity_id
Hi good Drupal folks,
I have created a couple of worksheets that users need to fill out as webforms. Along with the data i need to track, I am also storing the current user and the current custom module uid that tracks the current document that users are developing. In order words, the custom module captures data that is stored and will later be used to generate a Word document that includes all that data, minus the data on the webforms I'm creating that help them figure out what data they need to capture.
What means "most". I successfully created a service class. And it is injected into my controller all fine and working nicely. But I am not sure that I have a problem that needs a service.
I created a custom module for form which accepts from date and to date as user input i would like to restrict the user from selecting a date prior to current date. below is my code snippet.