You are here

public function ShortcodeInterface::process in Shortcode 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/ShortcodeInterface.php \Drupal\shortcode\Plugin\ShortcodeInterface::process()

Performs the shortcode processing.

Parameters

array $attributes: Array of attributes.

string $text: The text string to be processed.

string $langcode: The language code of the text to be filtered. Defaults to LANGCODE_NOT_SPECIFIED.

Return value

string The processed text.

11 methods override ShortcodeInterface::process()
BlockShortcode::process in shortcode_basic_tags/src/Plugin/Shortcode/BlockShortcode.php
Performs the shortcode processing.
BootstrapColumnShortcode::process in shortcode_example/src/Plugin/Shortcode/BootstrapColumnShortcode.php
Performs the shortcode processing.
ButtonShortcode::process in shortcode_basic_tags/src/Plugin/Shortcode/ButtonShortcode.php
Performs the shortcode processing.
ClearShortcode::process in shortcode_basic_tags/src/Plugin/Shortcode/ClearShortcode.php
Performs the shortcode processing.
DropcapShortcode::process in shortcode_basic_tags/src/Plugin/Shortcode/DropcapShortcode.php
Performs the shortcode processing.

... See full list

File

src/Plugin/ShortcodeInterface.php, line 66

Class

ShortcodeInterface
Defines the interface for text processing shortcode plugins.

Namespace

Drupal\shortcode\Plugin

Code

public function process(array $attributes, $text, $langcode = Language::LANGCODE_NOT_SPECIFIED);