You are here

public function PropertyTypeBase::getSubProperties in Schema.org Metatag 8.2

The sub-properties.

Return value

array Returns a key/value array of property name and property info used in this plugin.

Overrides PropertyTypeInterface::getSubProperties

3 calls to PropertyTypeBase::getSubProperties()
PropertyTypeBase::form in src/Plugin/schema_metatag/PropertyTypeBase.php
Create a complete form element for this property type.
PropertyTypeBase::processedTestValue in src/Plugin/schema_metatag/PropertyTypeBase.php
Provide a test output value for the input value.
PropertyTypeBase::testValue in src/Plugin/schema_metatag/PropertyTypeBase.php
Provide a test input value for the property that will validate.

File

src/Plugin/schema_metatag/PropertyTypeBase.php, line 125

Class

PropertyTypeBase
Base class for Property type plugins.

Namespace

Drupal\schema_metatag\Plugin\schema_metatag

Code

public function getSubProperties() {
  return !empty($this->pluginDefinition['sub_properties']) ? $this->pluginDefinition['sub_properties'] : [];
}