UIBlock: Add hasDataAttributes() method

This commit is contained in:
Molkobain
2021-03-23 11:28:06 +01:00
parent 7127c70ed6
commit a19df34b79

View File

@@ -502,7 +502,6 @@ abstract class UIBlock implements iUIBlock
return $this;
}
/**
* @param string $sName
* @param string $sValue
@@ -516,6 +515,15 @@ abstract class UIBlock implements iUIBlock
return $this;
}
/**
* @return bool
* @uses static::$aDataAttributes
*/
public function HasDataAttributes(): bool
{
return !empty($this->aDataAttributes);
}
/**
* @return bool
*/