Back to Microdata class

Method displayScope

public string
displayScope
()
Return the HTML of the current Scope
Returns
  • string
Since
  • 3.2
Class: Microdata
Project: Joomla

Method displayScope - Source code

/**
 * Return the HTML of the current Scope
 *
 * @return  string
 *
 * @since   3.2
 */
public function displayScope()
{
    // Control if the library output is enabled, otherwise return the $content or empty string
    if (!$this->enabled) {
        return '';
    }
    return static::htmlScope($this->type);
}