FilterSparkles.php

Same filename and directory in other branches
  1. 9 core/modules/filter/tests/filter_test_plugin/src/Plugin/Filter/FilterSparkles.php
  2. 8.9.x core/modules/filter/tests/filter_test_plugin/src/Plugin/Filter/FilterSparkles.php
  3. 10 core/modules/filter/tests/filter_test_plugin/src/Plugin/Filter/FilterSparkles.php

Namespace

Drupal\filter_test_plugin\Plugin\Filter

File

core/modules/filter/tests/filter_test_plugin/src/Plugin/Filter/FilterSparkles.php

View source
<?php

namespace Drupal\filter_test_plugin\Plugin\Filter;

use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\filter\Attribute\Filter;
use Drupal\filter\FilterProcessResult;
use Drupal\filter\Plugin\FilterBase;
use Drupal\filter\Plugin\FilterInterface;

/**
 * Provides a filter to limit allowed HTML tags.
 *
 * This filter does not do anything, but enabling of its module is done in a
 * test.
 *
 * @see \Drupal\Tests\filter\Functional\FilterFormTest::testFilterForm()
 */
class FilterSparkles extends FilterBase {
    
    /**
     * {@inheritdoc}
     */
    public function process($text, $langcode) {
        return new FilterProcessResult($text);
    }

}

Classes

Title Deprecated Summary
FilterSparkles Provides a filter to limit allowed HTML tags.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.