Implement new Filter via hook_filter_info() in Drupal 8


I’m using the shortcodes inside text areas to generate the dynamic data, so I need text format which will have disabled cache.

In d7 this was easy to do, I’ve just created new text filter:

 * Implementation of hook_filter_info().
function HOOK_filter_info() {
  $filters['filter_dynamic'] = array(
    'title' => t('Filter Dynamic'),
    'process callback' => '_hook_process',
    'settings callback' => '_settings_form',
    'cache' => FALSE,
  return $filters;

But I can’t find any information about this in D8. Is this possible? Or someone can suggest the better way?


Drupal version: