interface shortcodes_service_interface

Interface for Shortcode Filters.

Defines the contract for processing text containing [middag] shortcodes.

Methods

static string
filter(string $text, array $options = [])

Applies filtering to the given text by invoking registered middag shortcodes.

Details

at line 42
static string filter(string $text, array $options = [])

Applies filtering to the given text by invoking registered middag shortcodes.

Note: Implementations must ensure high performance as this runs on text rendering.

Parameters

string $text

the input text to be processed

array $options

additional options that may influence processing behavior

Return Value

string

the processed text after applying registered shortcodes

Exceptions

ContainerExceptionInterface
NotFoundExceptionInterface