Function __global->get_block_parameters

Definitions

sources/zones2.php

  • Gets parameters for a block.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$block ID_TEXT No No required parameter N/A N/A The name of the block to get parameters for
$include_standard_parameters boolean No No False N/A N/A Include parameters that apply to all blocks

Returns

  • A list of parameters the block takes
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Gets parameters for a block.
 *
 * @param  ID_TEXT $block The name of the block to get parameters for
 * @param  boolean $include_standard_parameters Include parameters that apply to all blocks
 * @return array A list of parameters the block takes
 */

function get_block_parameters(string $block, bool $include_standard_parameters = false) : array