Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Vasiliy Grotov’s picture

Assigned: Unassigned » Vasiliy Grotov

Will work on this on the weekend.

claudiu.cristea’s picture

Great. Thank you! But I still think you should wait for #1788542: Use EntityFormController and EntityListController for image styles to get committed first. There are big form changes there.

Vasiliy Grotov’s picture

claudiu.cristea’s picture

Status: Active » Needs work

@Vasiliy Grotov, as #1788542: Use EntityFormController and EntityListController for image styles is in, you can start with this one :)

I see 2 occurrences:

$ grep -nr image.admin.css core/modules/image
core/modules/image/lib//Drupal/image/Form/ImageEffectFormBase.php:63:    $form['#attached']['css'][drupal_get_path('module', 'image') . '/css/image.admin.css'] = array();
core/modules/image/lib//Drupal/image/Form/ImageStyleEditForm.php:61:    $form['#attached']['css'][drupal_get_path('module', 'image') . '/css/image.admin.css'] = array();
mondrake’s picture

Issue summary: View changes
Status: Needs work » Needs review
FileSize
7.28 KB

Let's give a try.

mondrake’s picture

Component: image system » image.module
mondrake’s picture

Title: Convert image.admin.css into a library » Convert image.admin.css and image.theme.css into a library
tim.plunkett’s picture

Status: Needs review » Needs work
Issue tags: +Needs screenshots, +Needs manual testing
  1. --- /dev/null
    +++ b/core/modules/image/css/admin.ui.css
    
    index 3e1f901..0000000
    --- a/core/modules/image/css/image.admin.css
    

    Why this name change? That doesn't fit our standards at all.

  2. +++ /dev/null
    deleted file mode 100644
    index 3da51ef..0000000
    
    index 3da51ef..0000000
    --- a/core/modules/image/css/image.theme.css
    
    +++ /dev/null
    --- /dev/null
    +++ b/core/modules/image/css/widget.css
    

    Same here.

Also aren't you missing the image.libraries.yml?

mondrake’s picture

Assigned: Vasiliy Grotov » Unassigned
Status: Needs work » Needs review
FileSize
2.71 KB

Thanks for review.

1, 2 - OK, reverted. Not sure about the naming of the library elements though, then.

aren't you missing the image.libraries.yml?

? it was in the patch in #5.

Anyway - new patch here, no interdiff, the patch is just much simpler :)

tim.plunkett’s picture

  1. +++ b/core/modules/image/image.libraries.yml
    @@ -0,0 +1,11 @@
    +admin:
    ...
    +widget:
    

    This needs to be image.admin and image.widget

  2. +++ b/core/modules/image/image.libraries.yml
    @@ -0,0 +1,11 @@
    +    component:
    

    This should be theme, not component

mondrake’s picture

Thanks. Here we go.

mondrake’s picture

Sorry.

mondrake’s picture

Status: Needs review » Needs work

The last submitted patch, 13: 2049743-image_library-13.patch, failed testing.

mondrake’s picture

FileSize
2.62 KB

Rerolled

mondrake’s picture

Status: Needs work » Needs review
mondrake’s picture

Status: Needs review » Closed (duplicate)