You are here

public function ListTagPlugin::getDefaultSample in Extensible BBCode 8.3

Same name and namespace in other branches
  1. 4.0.x standard/src/Plugin/XBBCode/ListTagPlugin.php \Drupal\xbbcode_standard\Plugin\XBBCode\ListTagPlugin::getDefaultSample()

Return the unprocessed sample code.

This should have {{ name }} placeholders for the tag name.

Return value

string The sample code.

Overrides TagPluginBase::getDefaultSample

File

standard/src/Plugin/XBBCode/ListTagPlugin.php, line 51

Class

ListTagPlugin
Renders a list.

Namespace

Drupal\xbbcode_standard\Plugin\XBBCode

Code

public function getDefaultSample() : string {
  return $this
    ->t('[{{ name }}=lower-roman]
[*] One
[*] Two
[*] Three
[/{{ name }}]');
}