public static function PropertyTypeBase::validateProperty in Schema.org Metatag 8.2
Validates the property form when submitted.
Optional per-property type validation of form values.
Parameters
array $element: The form element to process.
\Drupal\Core\Form\FormStateInterface $form_state: The form state.
Overrides PropertyTypeInterface::validateProperty
File
- src/
Plugin/ schema_metatag/ PropertyTypeBase.php, line 296
Class
- PropertyTypeBase
- Base class for Property type plugins.
Namespace
Drupal\schema_metatag\Plugin\schema_metatagCode
public static function validateProperty(array &$element, FormStateInterface $form_state) {
// Extend as needed to validate property types.
}