You are here

public function PropertyTypeInterface::getOptionList in Schema.org Metatag 8.2

Create an option list for a given tree section.

Used to create a psuedo "nested" option list used for the @type selector.

Parameters

mixed $parent: Null or Array of the top level Schema.org object(s) used by this class, the objects that should be displayed as options for the @type property.

int $depth: Goes with the above value, the depth used for the above parent(s) to create the desired array of @type values.

Return value

array An option array for the class parent.

1 method overrides PropertyTypeInterface::getOptionList()
PropertyTypeBase::getOptionList in src/Plugin/schema_metatag/PropertyTypeBase.php
Create an option list for a given tree section.

File

src/Plugin/schema_metatag/PropertyTypeInterface.php, line 113

Class

PropertyTypeInterface
Defines an interface for property type plugins.

Namespace

Drupal\schema_metatag\Plugin\schema_metatag

Code

public function getOptionList($parent, $depth);