TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Rtehtmlarea\Extension\Typo3Link Class Reference
Inheritance diagram for TYPO3\CMS\Rtehtmlarea\Extension\Typo3Link:
TYPO3\CMS\Rtehtmlarea\RteHtmlAreaApi

Public Member Functions

 main (array $configuration)
 
 buildJavascriptConfiguration ()
 
 buildJSClassesAnchorArray ()
 
 applyToolbarConstraints ($show)
 
- Public Member Functions inherited from TYPO3\CMS\Rtehtmlarea\RteHtmlAreaApi
 main (array $configuration)
 
 buildJavascriptConfiguration ()
 
 getExtensionKey ()
 
 addsButtons ()
 
 getPluginButtons ()
 
 getPluginLabels ()
 
 getConvertToolbarForHtmlAreaArray ()
 
 requiresClassesConfiguration ()
 
 getRequiredPlugins ()
 
 setToolbar (array $toolbar)
 

Protected Attributes

 $pluginName = 'TYPO3Link'
 
 $pluginButtons = 'link, unlink'
 
 $convertToolbarForHtmlAreaArray
 
- Protected Attributes inherited from TYPO3\CMS\Rtehtmlarea\RteHtmlAreaApi
 $extensionKey = 'rtehtmlarea'
 
 $pluginName
 
 $relativePathToSkin = ''
 
 $toolbar
 
 $pluginButtons = ''
 
 $pluginLabels = ''
 
 $pluginAddsButtons = true
 
 $convertToolbarForHtmlAreaArray = []
 
 $requiresClassesConfiguration = false
 
 $requiredPlugins = ''
 
 $configuration
 

Additional Inherited Members

- Protected Member Functions inherited from TYPO3\CMS\Rtehtmlarea\RteHtmlAreaApi
 cleanList ($str)
 
 getPageConfigLabel ($string)
 
 isFrontend ()
 
 isFrontendEditActive ()
 
 getFullFileName ($filename)
 
 writeTemporaryFile ($label, $fileExtension='js', $contents='')
 
 getLanguageService ()
 

Detailed Description

TYPO3Link plugin for htmlArea RTE

Definition at line 24 of file Typo3Link.php.

Member Function Documentation

◆ applyToolbarConstraints()

TYPO3\CMS\Rtehtmlarea\Extension\Typo3Link::applyToolbarConstraints (   $show)

Return an updated array of toolbar enabled buttons

Parameters
array$show,array of toolbar elements that will be enabled, unless modified here
Returns
array toolbar button array, possibly updated

Definition at line 130 of file Typo3Link.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

◆ buildJavascriptConfiguration()

TYPO3\CMS\Rtehtmlarea\Extension\Typo3Link::buildJavascriptConfiguration ( )

Return JS configuration of the htmlArea plugins registered by the extension

Returns
string JS configuration for registered plugins, in this case, JS configuration of block elements

Definition at line 68 of file Typo3Link.php.

References TYPO3\CMS\Rtehtmlarea\RteHtmlAreaApi\$extensionKey, $GLOBALS, TYPO3\CMS\Rtehtmlarea\Extension\Typo3Link\$pluginName, TYPO3\CMS\Rtehtmlarea\Extension\Typo3Link\buildJSClassesAnchorArray(), TYPO3\CMS\Core\Utility\GeneralUtility\quoteJSvalue(), and TYPO3\CMS\Rtehtmlarea\RteHtmlAreaApi\writeTemporaryFile().

◆ buildJSClassesAnchorArray()

◆ main()

TYPO3\CMS\Rtehtmlarea\Extension\Typo3Link::main ( array  $configuration)

Returns TRUE if the plugin is available and correctly initialized

Parameters
array$configurationConfiguration array given from calling object down to the single plugins
Returns
bool TRUE if this plugin object should be made available in the current environment and is correctly initialized

Definition at line 56 of file Typo3Link.php.

Member Data Documentation

◆ $convertToolbarForHtmlAreaArray

TYPO3\CMS\Rtehtmlarea\Extension\Typo3Link::$convertToolbarForHtmlAreaArray
protected
Initial value:
= [
'link' => 'CreateLink'

Definition at line 45 of file Typo3Link.php.

◆ $pluginButtons

TYPO3\CMS\Rtehtmlarea\Extension\Typo3Link::$pluginButtons = 'link, unlink'
protected

Definition at line 38 of file Typo3Link.php.

◆ $pluginName

TYPO3\CMS\Rtehtmlarea\Extension\Typo3Link::$pluginName = 'TYPO3Link'
protected