Back to UCMBase class

Method getType

public \Joomla\CMS\UCM\UCMType
getType
()
Get the UCM Content type.
Returns
  • \Joomla\CMS\UCM\UCMType The UCM content type
Since
  • 3.1
Class: UCMBase
Project: Joomla

Method getType - Source code

/**
 * Get the UCM Content type.
 *
 * @return  UCMType  The UCM content type
 *
 * @since   3.1
 */
public function getType()
{
    if (!$this->type) {
        $this->type = new UCMType($this->alias);
    }
    return $this->type;
}