public function SchemaMetatagClientInterface::getOptionList in Schema.org Metatag 8.2
Create a @type option list from a given tree section.
Used to create a psuedo "nested" option list used for @type.
Parameters
string $parent_name: The key of the desired sub-array, if any.
int $depth: The desired depth to retrieve below the parent, -1 for the whole tree.
Return value
array An option array for the given parent.
1 method overrides SchemaMetatagClientInterface::getOptionList()
- SchemaMetatagClient::getOptionList in src/
SchemaMetatagClient.php - Create a @type option list from a given tree section.
File
- src/
SchemaMetatagClientInterface.php, line 158
Class
- SchemaMetatagClientInterface
- The SchemaMetatg Client Interface.
Namespace
Drupal\schema_metatagCode
public function getOptionList($parent_name = NULL, $depth = -1);