Problem migrating hook_install from Drupal 8 to Drupal 9

I'm porting my first module from Drupal 7 to Drupal 8 and 9, the module itself works, but now I'm stuck on the hook_install. The purpose of my call to hook_install is to create some directories in the public files directory as well as copy some files into them.

In Drupal 7 I used "file_prepare_directory" to create the needed directories. In Drupal 8 this still works, but is advised against since it's deprecated, But it's removed from Drupal 9.x. So I've found it can be replaced by 

Cannot install modules with composer

So I've ran a few Drupal 7 and 8 websites.

I've never used composer. On the few times I've tried I run into errors so stuck with the old method of uploading modules via ftp.

I think its time I got this sorted.

I was trying to install the twitch oauth2 package and got an error.

Register form block into modal

I want to display the register form in a modal. For that, I created a custom plugin block which returns the rendering of the form register.

How to fetch data from external api?

I'm not a programmer so I tried looking for a module that can fetch data from external api and then render it live. I found one called External Entities but it doesn't work with the api that I use as it gives this error: The "list" entity cannot have a URI as it does not have an ID the api is https://api.adoreanime.com/api/pixiv/?type=rank&mode=month&page=1&date=2... if anyone wants to test.

TECEZE

TECEZE is a managed IT service provider company which provides on-site, private cloud or hybrid services, and cyber security services to the companies(all public & private) in the United Kingdom. 

Sectors: 
Technology

Can't delete content, but can delete whole pages

Hi,

We have a Drupal website with several pages made by our developers. We had an editing course so that we could start to edit the website ourselves. I have to delete one image on a page, but there is no option to select specific contents so I could delete them,  but I can delete the whole page that contains that image, so I'm guessing permissions aren't the issue here. Is that correct? 
If so, what could be the reason I can't delete this image? 

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x