public static function SchemaMetatagManagerInterface::altSelector in Schema.org Metatag 7
Alternate visibility selector for the field element.
This is necessary because the form elements on the general configuration form have different parents than the form elements in the metatags field widget. This function makes is possible to convert the #states visibility selectors for the general configuration form into the right pattern so they will work on the field widget.
Parameters
string $selector: The selector constructed for the main metatag form.
Return value
string A rewritten selector that will work in the field form.
1 method overrides SchemaMetatagManagerInterface::altSelector()
- SchemaMetatagManager::altSelector in src/
SchemaMetatagManager.php - Alternate visibility selector for the field element.
File
- src/
SchemaMetatagManagerInterface.php, line 213
Class
- SchemaMetatagManagerInterface
- Interface SchemaMetatagManagerInterface.
Code
public static function altSelector($selector);