public static function SchemaMetatagManagerInterface::altSelector in Schema.org Metatag 8.2
Same name and namespace in other branches
- 8 src/SchemaMetatagManagerInterface.php \Drupal\schema_metatag\SchemaMetatagManagerInterface::altSelector()
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 234
Class
- SchemaMetatagManagerInterface
- The Schema Metatag Manager.
Namespace
Drupal\schema_metatagCode
public static function altSelector($selector);