Node::_getType PHP Method

_getType() protected method

_getType
protected _getType ( array $data ) : string
$data array Node data
return string type
    protected function _getType($data)
    {
        if (empty($data[$this->alias]['type'])) {
            $type = is_null($this->type) ? self::DEFAULT_TYPE : $this->type;
        } else {
            $type = $data[$this->alias]['type'];
        }
        return $type;
    }