Back to CategoryNode class

Method getMetadata

public \Joomla\Registry\Registry
getMetadata
()
Returns the category metadata
Returns
  • \Joomla\Registry\Registry A Registry object containing the metadata
Since
  • 1.6
Class: CategoryNode
Project: Joomla

Method getMetadata - Source code

/**
 * Returns the category metadata
 *
 * @return  Registry  A Registry object containing the metadata
 *
 * @since   1.6
 */
public function getMetadata()
{
    if (!$this->metadata instanceof Registry) {
        $this->metadata = new Registry($this->metadata);
    }
    return $this->metadata;
}