Validate image file resolution

Hello

 Im building a custom module it has some form, i need to validate the image being uploaded to be only 300x300 pixels, im using this way to validate the form:

'#upload_validators' => [
'file_validate_extensions' => ['gif png jpg jpeg'],
'file_validate_size' => [25600000],
],

I have found Drupal 8 has this function to call: file_validate_image_resolution

Site Unexpeced Error: Unable to determine class for field type

On drupal 8 site, I installed a contributed module and then added a field to a content type to test the module. After finding the module wasn't working as expected I decided to uninstall the module. To do that I tried to delete the field I had created, on clicking delete the site has remained inaccessible and displaying only this error:

Route "system.db_update" does not exist

Hello everyone,

I'm running a Drupal site and trying to update my site on v8.7.10, I have no access to the site after loading the files on my server.

Here is the display on the index.php

Create class for checking id on group migration

Hi,
I need to migrate d7 organic group to d8 group.
But I need to check if the d7 group was public or private for adding into different d8 group type.
Here is my yml file in my migration module
 

Errors & Warnings still displaying even after "Error messages to display" is set to "None"

Hello friends,

I am trying to hide all Warnings and Errors on my Drupal 8 production site.

It looks like the process should be pretty straight forward using the UI:

Administration->Configuration->Development->Logging and errors

Error messages to display:

  • None

However, this does not seem to change anything as all the warnings and errors are still displayed.

Am I missing anything? Is there a way I could turn of errors and warnings programatically?

How to create a table-structured content type?

I am creating a content type which needs to be in table format. The table structure looks like below:

Main title for the table:

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x