WordPress at a glance
function is not described

WP_Block_Type::get_attributes() public WP 5.0.0

Get all available block attributes including possible layout attribute from Columns block.

{} It's a method of the class: WP_Block_Type{}

No Hooks.

Return

Array. Array of attributes.

Usage

$WP_Block_Type = new WP_Block_Type();
$WP_Block_Type->get_attributes();

Changelog

Since 5.0.0 Introduced.

Code of WP_Block_Type::get_attributes() WP 5.7.2

<?php
public function get_attributes() {
	return is_array( $this->attributes ) ?
		$this->attributes :
		array();
}