Comments

thalles created an issue. See original summary.

thalles’s picture

Project: Blazy » Slick Carousel
thalles’s picture

thalles’s picture

Assigned: Unassigned » gausarts
thalles’s picture

gausarts’s picture

Thanks! Please consider setters as mentioned at Blazy for all plugin stuffs.

Few more issues:

  1. There is a small typo $$container.
  2. Needs setters for image.factory, formatter and manager.

We can remove later those defined at Blazy later on like image.factory. Until then, it might be needed during transition, unless you are confident it works without.

FYI, unlike Blazy, formatter and manager are branching out at sub-classes for their own needs, so explicit calls are required.

gausarts’s picture

Assigned: gausarts » thalles
Status: Needs review » Needs work
thalles’s picture

Follow a new patch with a setter to $blazyOembed, I think formatter and manager will is set in slick\Plugin\Field\FieldFormatter\SlickFileFormatterBase.

See:

  /**
   * Constructs a SlickFileFormatterBase instance.
   */
  public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, $label, $view_mode, array $third_party_settings, ImageFactory $image_factory, SlickFormatterInterface $formatter, SlickManagerInterface $manager) {
    parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $label, $view_mode, $third_party_settings, $image_factory, $formatter);
    $this->formatter = $formatter;
    $this->manager   = $manager;
  }
thalles’s picture

Status: Needs work » Needs review
gausarts’s picture

You are right. You may want to start from the base class then :)

gausarts’s picture

I'll get back to you tomorrow. It's late here. Feel free to continue patching the rest, and we'll review back. Thanks!

gausarts’s picture

Status: Needs review » Needs work

Feel free to commit this after the change mentioned here and there. Thanks a lot!

gausarts’s picture

Assigned: thalles » Unassigned
Status: Needs work » Needs review
StatusFileSize
new6.75 KB

Added ::injectServices() for easy copy/paste through Slick formatters.
Let's see if any issue.

  • gausarts committed 0fc52d7 on 8.x-2.x authored by thalles
    Issue #3113159 by thalles, gausarts: Fix subclassing and stop overriding...
gausarts’s picture

Status: Needs review » Fixed

Let's get the ball rolling, we have another release to catch up. Any (side) issue and or improvements may follow as always.

Committed. Thank you for contribution!

thalles’s picture

Thanks @gausarts!

gausarts’s picture

I do thank you! You saved me from headaches with this.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.