You are here

public function BlazyFilter::filterInfo in Blazy 7

Return blazy filter info.

File

src/Plugin/Filter/BlazyFilter.php, line 34

Class

BlazyFilter
Provides a filter to lazyload image, or iframe elements.

Namespace

Drupal\blazy\Plugin\Filter

Code

public function filterInfo() {
  $filters['blazy_filter'] = [
    'title' => t('Lazyload inline images, or video iframes, using Blazy'),
    'cache' => TRUE,
    'process callback' => '_blazy_filter_process',
    'settings callback' => '_blazy_filter_settings_form',
    'tips callback' => '_blazy_filter_tips',
    'weight' => 3,
    'default settings' => [
      'filter_tags' => [
        'img' => 'img',
        'iframe' => 'iframe',
      ],
      'column' => TRUE,
      'grid' => TRUE,
      'media_switch' => '',
    ],
  ];
  return $filters;
}