Merge remote-tracking branch 'origin/support/3.0' into develop

This commit is contained in:
Molkobain
2023-03-31 18:04:36 +02:00
2 changed files with 49 additions and 2 deletions

View File

@@ -599,6 +599,18 @@ abstract class UIBlock implements iUIBlock
return $this;
}
/**
* @param string $sName Name of the data attribute
*
* @return bool True if $sName is already defined (even as a null value) in the UIBLock data attributes, false otherwise
* @see static::$aDataAttributes
* @since 3.0.4 3.1.0 N°6140
*/
public function HasDataAttribute(string $sName): bool
{
return array_key_exists($sName, $this->aDataAttributes);
}
/**
* @return bool
* @see static::$aDataAttributes