public static function SchemaMetatagManager::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.
Overrides SchemaMetatagManagerInterface::altSelector
File
- src/
SchemaMetatagManager.php, line 372 - A generic substitution for Drupal 8 Random utility.
Class
- SchemaMetatagManager
- Class SchemaMetatagManager.
Code
public static function altSelector($selector) {
return $selector;
}