public function validateComponentDataValue($property_name, $property_info, $component_data) {
    if (isset($property_info['validation'])) {
      $validate_callback = $property_info['validation'];
      $result = $validate_callback($property_name, $property_info, $component_data);

      // Fill in the placeholder array if the callback returned just a string.
      if (is_string($result)) {
        $result = [$result, []];
      }

      return $result;
    }
  }