Hook filterHtmlContent

Informations

Filter HTML field before rending a page This hook is called just before fetching a page on HTML field
Hook filterHtmlContent
Locations
FO
Type action
Origin core
Aliases
Description This hook is called just before fetching a page on HTML field

This hook has a $check_exceptions parameter set to false (check permission exceptions, see explaination here).

This hook has a $chain parameter set to true (hook will chain the return of hook module, see explaination here).

Located in

Origin File
core src/Adapter/Presenter/Object/ObjectPresenter.php

Call of the Hook in the origin file

$filteredHtml = Hook::exec(
    'filterHtmlContent',
    [
        'type' => $type,
        'htmlFields' => $htmlFields,
        'object' => $presentedObject,
    ],
    null,
    false,
    true,
    false,
    null,
    true
);