Back to Microdata class

Method enable

public \Joomla\CMS\Microdata\Microdata
enable
(mixed $flag = true)
Enable or Disable the library output
Parameters
  • bool $flag Enable or disable the library output
Returns
  • \Joomla\CMS\Microdata\Microdata Instance of $this
Since
  • 3.2
Class: Microdata
Project: Joomla

Method enable - Source code

/**
 * Enable or Disable the library output
 *
 * @param   boolean  $flag  Enable or disable the library output
 *
 * @return  Microdata  Instance of $this
 *
 * @since   3.2
 */
public function enable($flag = true)
{
    $this->enabled = (bool) $flag;
    return $this;
}