How to automatically flag an entity when the form is submitted ?

I created a small custom module in Drupal 8 to moderate new entities and update entities.

The module is simple. It marks with the help of the flag module, the entities created or updated automatically.

Here is my module :

changing <a> color using Settings --> Advanced Options --> Inline CSS

We have a custom theme that is being used by over 100 sub-sites for one University.  ONE of the sub-sites would love to have me change the color of their linked content from red to blue.  I can't change this in the actual theme for them because it will affect all the sites. I tried adding a simple a {color:blue;} to the inline CSS box in Advanced Options but apparently its not as simple as that.  They have linked text in <p>, <h2>, <h3>, <h4>, <h5> and <h6>.  I would love some advice on what step to take to get this change to happen.

composer error Trying to access array offset on value of type int

drupal 8.9.7

php : 

drupal@wpdemo:/var/www/html$ php -v
PHP 7.4.3 (cli) (built: May 26 2020 12:24:22) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.3, Copyright (c), by Zend Technologies
 

i was trying to upgrade drupal from 8.9.7 to 8.9.8 so i ran 

composer outdated "drupal/*"

 which gave me the following error 

Views PDF Drupal 8 Alternative

Is there a Views PDF alternative for Drupal 8 ? My current task require the features View_PDF states.

Visibility of blocks for user 1 does not work for D 8.9.6

I installed Drupal 8.9.6 but also 8.9.7 and found a big problem.
Example:
Create a block
Place the block in the region of your choice.
In the block settings, select the visibility for the Administrator role only.
Go to the Home or any page.
If you are logged in as user 1, you will not see the block.
Warning I have simulated this by downloading the versions I mentioned above. (I haven't updated the core to this version.)
I did some research and I believe this anomaly is related to this question.

Duplicate a content

How to enable option to duplicate a content under /admin/content page

Basically under /admin/content in the content listing section there are options for edit , translate and delete.

I want to introduce an option -duplicate to duplicate any content with ease.

How to do it?

Suggestions are welcome

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x