auto-patch 638-dev-dev01-2024-05-14T20_44_36
This commit is contained in:
@@ -201,6 +201,16 @@ class AbstractBlock implements BlockInterface {
|
||||
$this->attributes = $attributes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set a block attribute value without replacing the entire attributes object.
|
||||
*
|
||||
* @param string $key The attribute key.
|
||||
* @param mixed $value The attribute value.
|
||||
*/
|
||||
public function set_attribute( string $key, $value ) {
|
||||
$this->attributes[ $key ] = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the template that this block belongs to.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user