/**
 * Instantiate the UCMBase.
 *
 * @param   string   $alias  The alias string
 * @param   UCMType  $type   The type object
 *
 * @since   3.1
 */
public function __construct($alias = null, UCMType $type = null)
{
    // Setup dependencies.
    $input = Factory::getApplication()->input;
    $this->alias = $alias ?: $input->get('option') . '.' . $input->get('view');
    $this->type = $type ?: $this->getType();
}