You are here

public function FreelinkingManagerInterface::createFreelinkElement in Freelinking 4.0.x

Same name and namespace in other branches
  1. 8.3 src/FreelinkingManagerInterface.php \Drupal\freelinking\FreelinkingManagerInterface::createFreelinkElement()

Create the render array for the respective Freelinking plugin.

@todo Set cache contexts from plugin. @todo Multilingual support.

Parameters

string $plugin_id: The plugin ID.

string $target: The target string to parse.

string $indicator: The indicator string.

string $langcode: The language code.

string $plugin_settings_string: The plugin settings serialized as a string.

string $failover_settings_string: The failover settings serialized as a string. Defaults to an empty array.

Return value

array A render element.

1 method overrides FreelinkingManagerInterface::createFreelinkElement()
FreelinkingManager::createFreelinkElement in src/FreelinkingManager.php
Create the render array for the respective Freelinking plugin.

File

src/FreelinkingManagerInterface.php, line 106

Class

FreelinkingManagerInterface
Freelinking plugin manager interface.

Namespace

Drupal\freelinking

Code

public function createFreelinkElement($plugin_id, $target, $indicator, $langcode, $plugin_settings_string, $failover_settings_string);