public static function MetaNameBase::validateTag in Metatag 8
Validates the metatag data.
Parameters
array $element: The form element to process.
\Drupal\Core\Form\FormStateInterface $form_state: The form state.
File
- src/
Plugin/ metatag/ Tag/ MetaNameBase.php, line 389
Class
- MetaNameBase
- Each meta tag will extend this base.
Namespace
Drupal\metatag\Plugin\metatag\TagCode
public static function validateTag(array &$element, FormStateInterface $form_state) {
// @todo If there is some common validation, put it here. Otherwise, make
// it abstract?
}