Class

eZ\Publish\Core\FieldType\RichText\CustomTagsValidator

class CustomTagsValidator

Validator for Custom Tags input.

The Validator checks if the given XML reflects proper Custom Tags configuration, mostly existence of specific Custom Tag and its required attributes.

Methods

__construct(array $customTagsConfiguration)

string[] validateDocument(DOMDocument $xmlDocument)

Validate Custom Tags found in the document.

Details

at line 32
public __construct(array $customTagsConfiguration)

Parameters

array $customTagsConfiguration Injectable using %ezplatform.ezrichtext.custom_tags% DI Container parameter.

at line 44
public string[] validateDocument(DOMDocument $xmlDocument)

Validate Custom Tags found in the document.

Parameters

DOMDocument $xmlDocument

Return Value

string[] an array of error messages