Back to Microdata class

Method htmlMeta

public static string
htmlMeta
(mixed $content, mixed $property, mixed $scope = '', mixed $invert = false)
Return Microdata semantics in a `<meta>` tag with content for machines.
Parameters
  • string $content The machine content to display
  • string $property The Property
  • string $scope Optional, the Type scope to display
  • bool $invert Optional, default = false, invert the $scope with the $property
Returns
  • string
Since
  • 3.2
Class: Microdata
Project: Joomla

Method htmlMeta - Source code

/**
 * Return Microdata semantics in a `<meta>` tag with content for machines.
 *
 * @param   string   $content   The machine content to display
 * @param   string   $property  The Property
 * @param   string   $scope     Optional, the Type scope to display
 * @param   boolean  $invert    Optional, default = false, invert the $scope with the $property
 *
 * @return  string
 *
 * @since   3.2
 */
public static function htmlMeta($content, $property, $scope = '', $invert = false)
{
    return static::htmlTag('meta', $content, $property, $scope, $invert);
}