I have created a feature(user_password_policy) which sets configuration values for the password_policy module and the force_password_change module. However, some settings are not picked up by strong arm so I need to make these changes with hook_update_N.
Do I create an install file, user_password_policy.install? If not, how can I do db updates in my feature?
For the update function, do I call it
function force_password_change_update_7100() { In other words, do I reference the module I want to refer to in my feature?
Before saving a node with a title, I want to check if the node with given title and language already exists or not. I have seen examples with hook_form_alter(), but I am not following much. And obviously not working. This is what my code looks like:
I have a module mostly built that provides custom entity access checking via a class inheriting from EntityAccessCheck. The ::access method is called properly and works well in most cases. This module includes a UI that lets an admin specify, for a given entity, what operations are available to each user. The problem is that, if I use ListBuilder::getOperations($entity) and ListBuilder::getDefaultOperations when generating this interface, the ListBuilder class checks what operations the current user has access to. Instead, I need a list of all operations.