Support from Acquia helps fund testing for Drupal Acquia logo

Comments

vijaycs85’s picture

Assigned: Unassigned » vijaycs85
Issue summary: View changes

Going to try this one...

vijaycs85’s picture

Assigned: vijaycs85 » Unassigned
Status: Active » Needs work
FileSize
28.14 KB

Initial patch. Still needs more work. Just adding here, if anyone want to pick it before I start progressing...

vijaycs85’s picture

  1. +++ b/image_example/image_example.routing.yml
    @@ -0,0 +1,15 @@
    +  $items[''] = array(
    +    'title' => '',
    +    'page callback' => 'drupal_get_form',
    +    'page arguments' => array(''),
    +    'access arguments' => array(''),
    +    'file' => 'image_example.pages.inc',
    +  );
    

    Need to removed....

  2. +++ b/image_example/src/Form/StyleForm.php
    @@ -0,0 +1,153 @@
    \ No newline at end of file
    

    oops

  3. +++ b/image_example/src/Plugin/ImageEffect/ColorizeImageEffect.php
    @@ -0,0 +1,159 @@
    + *     // Human readable name of the effect.
    +'label' => $this->t(''),
    +// (optional) Brief description of the effect that will be shown when
    +// adding or configuring this image effect.
    +'help' => $this->t(''),
    +// Name of function called to perform this effect.
    ...
    +'summary theme' => 'image_example_colorize_summary',
    

    Need to be removed...

  4. +++ b/image_example/src/Plugin/ImageEffect/ColorizeImageEffect.php
    @@ -0,0 +1,159 @@
    \ No newline at end of file
    

    again...

rpayanm’s picture

FileSize
13.54 KB
27.02 KB

Another progress...

Mile23’s picture

Status: Needs work » Needs review
Mile23’s picture

Status: Needs review » Needs work

The patch still applies (since it's making a new module), but it doesn't appear in the module list to enable.

joshi.rohit100’s picture

Assigned: Unassigned » joshi.rohit100
joshi.rohit100’s picture

Assigned: joshi.rohit100 » Unassigned
rpayanm’s picture

Status: Needs work » Needs review
FileSize
356 bytes
27.04 KB

Umm missing:

type: module

Status: Needs review » Needs work

The last submitted patch, 9: 2102661-9.patch, failed testing.

joshi.rohit100’s picture

I think, instead of using config factory in submit, we should use getEditbale... method

rpayanm’s picture

Status: Needs work » Needs review
FileSize
477 bytes
27.08 KB

I think, instead of using config factory in submit, we should use getEditbale... method

@joshi.rohit100 you could give an example, please.

Status: Needs review » Needs work

The last submitted patch, 12: 2102661-12.patch, failed testing.

joshi.rohit100’s picture

Status: Needs work » Needs review
FileSize
26.91 KB
2.55 KB

lets first fix the tests.

Status: Needs review » Needs work

The last submitted patch, 14: 2102661-14.patch, failed testing.

joshi.rohit100’s picture

FileSize
27.39 KB
485 bytes
joshi.rohit100’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 16: 2102661-16.patch, failed testing.

joshi.rohit100’s picture

Status: Needs work » Needs review
FileSize
27.37 KB
571 bytes

Status: Needs review » Needs work

The last submitted patch, 19: 2102661-19.patch, failed testing.

joshi.rohit100’s picture

Status: Needs work » Needs review
FileSize
27.43 KB
441 bytes

hoping for green

Status: Needs review » Needs work

The last submitted patch, 21: 2102661-21.patch, failed testing.

Mile23’s picture

Fixed some typos, CS improvements, moved test to BTB.

Still a lot to do, such as l(), t(), and drupal_set_message().

I see this error on testing:

1) Drupal\Tests\image_example\Functional\ImageExampleTest::testImageExample
Drupal\Core\Config\Schema\SchemaIncompleteException: Schema errors for image_example.settings with the following errors: image_example.settings:_core missing schema

This leads me to believe that we need to tweak something in config/schema/ and/or config/install/.

Also the form you eventually see doesn't explain itself, and doesn't seem to do anything. It fails to upload an image and errors out.

We might also change the name of this to image_style_example.

Status: Needs review » Needs work

The last submitted patch, 23: 2102661_23.patch, failed testing. View results

jungle’s picture

Title: Port image_example module to Drupal 8 » Port image_example module to Drupal 9.4+
Version: 8.x-1.x-dev » 4.0.x-dev

4.0.x is the active dev branch