‪TYPO3CMS  ‪main
TYPO3\CMS\Core\MetaTag\GenericMetaTagManager Class Reference
Inheritance diagram for TYPO3\CMS\Core\MetaTag\GenericMetaTagManager:
TYPO3\CMS\Core\MetaTag\MetaTagManagerInterface

Public Member Functions

 addProperty (string $property, string $content, array $subProperties=[], bool $replace=false, string $type='name')
 
 getProperty (string $property, string $type='name')
 
 getAllHandledProperties ()
 
 renderAllProperties ()
 
 renderProperty (string $property)
 
 removeProperty (string $property, string $type='')
 
 removeAllProperties ()
 
 canHandleProperty (string $property)
 
 getState ()
 
 updateState (array $state)
 

Protected Attributes

string $subPropertySeparator = ':'
 
array $properties = array( )
 

Detailed Description

Handles typical meta tags (non-grouped). Use AbstractMetaTagManager to create you own MetaTags, this class is final by design

Definition at line 24 of file GenericMetaTagManager.php.

Member Function Documentation

◆ addProperty()

TYPO3\CMS\Core\MetaTag\GenericMetaTagManager::addProperty ( string  $property,
string  $content,
array  $subProperties = [],
bool  $replace = false,
string  $type = 'name' 
)

Add a property (including subProperties)

Implements TYPO3\CMS\Core\MetaTag\MetaTagManagerInterface.

Definition at line 41 of file GenericMetaTagManager.php.

References TYPO3\CMS\Core\MetaTag\GenericMetaTagManager\removeProperty().

◆ canHandleProperty()

TYPO3\CMS\Core\MetaTag\GenericMetaTagManager::canHandleProperty ( string  $property)

Check if this manager can handle the given property

Implements TYPO3\CMS\Core\MetaTag\MetaTagManagerInterface.

Definition at line 143 of file GenericMetaTagManager.php.

◆ getAllHandledProperties()

TYPO3\CMS\Core\MetaTag\GenericMetaTagManager::getAllHandledProperties ( )

Returns an array with all properties that can be handled by this manager

Implements TYPO3\CMS\Core\MetaTag\MetaTagManagerInterface.

Definition at line 73 of file GenericMetaTagManager.php.

◆ getProperty()

TYPO3\CMS\Core\MetaTag\GenericMetaTagManager::getProperty ( string  $property,
string  $type = 'name' 
)

Get the data of a specific property

Implements TYPO3\CMS\Core\MetaTag\MetaTagManagerInterface.

Definition at line 59 of file GenericMetaTagManager.php.

◆ getState()

TYPO3\CMS\Core\MetaTag\GenericMetaTagManager::getState ( )

◆ removeAllProperties()

TYPO3\CMS\Core\MetaTag\GenericMetaTagManager::removeAllProperties ( )

Unset all properties

Implements TYPO3\CMS\Core\MetaTag\MetaTagManagerInterface.

Definition at line 138 of file GenericMetaTagManager.php.

◆ removeProperty()

TYPO3\CMS\Core\MetaTag\GenericMetaTagManager::removeProperty ( string  $property,
string  $type = '' 
)

Remove one property from the MetaTagManager If there are multiple occurrences of a property, they all will be removed

Implements TYPO3\CMS\Core\MetaTag\MetaTagManagerInterface.

Definition at line 123 of file GenericMetaTagManager.php.

Referenced by TYPO3\CMS\Core\MetaTag\GenericMetaTagManager\addProperty().

◆ renderAllProperties()

TYPO3\CMS\Core\MetaTag\GenericMetaTagManager::renderAllProperties ( )

Render all registered properties of this manager

Implements TYPO3\CMS\Core\MetaTag\MetaTagManagerInterface.

Definition at line 81 of file GenericMetaTagManager.php.

References TYPO3\CMS\Core\MetaTag\GenericMetaTagManager\renderProperty().

◆ renderProperty()

TYPO3\CMS\Core\MetaTag\GenericMetaTagManager::renderProperty ( string  $property)

Render a specific property including subproperties of that property

Implements TYPO3\CMS\Core\MetaTag\MetaTagManagerInterface.

Definition at line 94 of file GenericMetaTagManager.php.

Referenced by TYPO3\CMS\Core\MetaTag\GenericMetaTagManager\renderAllProperties().

◆ updateState()

TYPO3\CMS\Core\MetaTag\GenericMetaTagManager::updateState ( array  $state)

Member Data Documentation

◆ $properties

array TYPO3\CMS\Core\MetaTag\GenericMetaTagManager::$properties = array( )
protected

Array of properties that are set by the manager

Definition at line 36 of file GenericMetaTagManager.php.

Referenced by TYPO3\CMS\Core\MetaTag\GenericMetaTagManager\getState().

◆ $subPropertySeparator

string TYPO3\CMS\Core\MetaTag\GenericMetaTagManager::$subPropertySeparator = ':'
protected

The separator to define subproperties like og:image:width

Definition at line 30 of file GenericMetaTagManager.php.