You are here

public static function SchemaMetatagManagerInterface::altSelector in Schema.org Metatag 8

Same name and namespace in other branches
  1. 8.2 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 217

Class

SchemaMetatagManagerInterface
Interface SchemaMetatagManagerInterface.

Namespace

Drupal\schema_metatag

Code

public static function altSelector($selector);