public function TagPluginBase::getDefaultSample in Extensible BBCode 8.3
Same name and namespace in other branches
- 4.0.x src/Plugin/TagPluginBase.php \Drupal\xbbcode\Plugin\TagPluginBase::getDefaultSample()
Return the unprocessed sample code.
This should have {{ name }} placeholders for the tag name.
Return value
string The sample code.
Overrides TagPluginInterface::getDefaultSample
1 call to TagPluginBase::getDefaultSample()
- TagPluginBase::getSample in src/
Plugin/ TagPluginBase.php - Return a sample tag for the filter tips.
3 methods override TagPluginBase::getDefaultSample()
- ImageTagPlugin::getDefaultSample in standard/
src/ Plugin/ XBBCode/ ImageTagPlugin.php - ListTagPlugin::getDefaultSample in standard/
src/ Plugin/ XBBCode/ ListTagPlugin.php - Return the unprocessed sample code.
- TableTagPlugin::getDefaultSample in standard/
src/ Plugin/ XBBCode/ TableTagPlugin.php - Return the unprocessed sample code.
File
- src/
Plugin/ TagPluginBase.php, line 141
Class
- TagPluginBase
- Provides a base class for XBBCode tag plugins.
Namespace
Drupal\xbbcode\PluginCode
public function getDefaultSample() : string {
return $this->pluginDefinition['sample'];
}