Score:0

Get all url in visibility request_path in block_content if request_path['pages'] is /node/* or /news/*

cu flag

I am creating a module for the administrator for Drupal 9. The purpose of this module is to show one of the block_content of a certain type in the table as a sample and create 2 links for it: for editing and for viewing (Edit/View).In order to get a link to view, I have to check the display conditions of this block. Let's say the block has display conditions on the page /node/10 - then everything is simple the link to view will be /node/10. But the block can have conditions not only for pages of the node type, but can have pages of the taxonomy_term type, and aliases can also be set, not node addresses. How do I check the conditions in visibility['request_path']['pages'] if the conditions can be /node/* or /news/* ???

4uk4 avatar
cn flag
Did you try entering both paths? You can match internal paths with aliases and vice versa.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.