<commit_before>{% extends "base/class.php.twig" %}

{% block file_path %}
Drupal\{{module}}\Plugin\ImageEffect\{{class_name}}.
{% endblock %}

{% block namespace_class %}
namespace Drupal\{{module}}\Plugin\ImageEffect;
{% endblock %}

{% block use_class %}
use Drupal\Core\Image\ImageInterface;
use Drupal\image\ImageEffectBase;
{% endblock %}

{% block class_declaration %}
/**
 * Provides a '{{class_name}}' image effect.
 *
 * @ImageEffect(
 *  id = "{{plugin_id}}",
 *  label = @Translation("{{label}}"),
 *  description = @Translation("{{description}}")
 * )
 */
class {{ class_name }} extends ImageEffectBase
{% endblock %}

{% block class_methods %}
  /**
   * {@inheritdoc}
   */
  public function applyEffect(ImageInterface $image) {
    // Implement Image Effect
    return imagefilter($image->getToolkit()->getResource());
  }
{% endblock %}
<commit_msg>#447 - generate:plugin:imageeffect : bring output into compliance with Drupal coding standards<commit_after>{% extends "base/class.php.twig" %}

{% block file_path %}
Drupal\{{module}}\Plugin\ImageEffect\{{class_name}}.
{% endblock %}

{% block namespace_class %}
namespace Drupal\{{module}}\Plugin\ImageEffect;
{% endblock %}

{% block use_class %}
use Drupal\Core\Image\ImageInterface;
use Drupal\image\ImageEffectBase;
{% endblock %}

{% block class_declaration %}
/**
 * Provides a '{{class_name}}' image effect.
 *
 * @ImageEffect(
 *  id = "{{plugin_id}}",
 *  label = @Translation("{{label}}"),
 *  description = @Translation("{{description}}")
 * )
 */
class {{ class_name }} extends ImageEffectBase {% endblock %}
{% block class_methods %}
  /**
   * {@inheritdoc}
   */
  public function applyEffect(ImageInterface $image) {
    // Implement Image Effect.
    return imagefilter($image->getToolkit()->getResource());
  }
{% endblock %}

{'fraction_non_alphanumeric': 0.18332413031474323, 'fraction_numerical': 0.0016565433462175593, 'mean_word_length': 4.644859813084112, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5525630', 'n_tokens_mistral': 593, 'n_tokens_neox': 553, 'n_words': 111}