Function Hook_CMA->info

Definitions

sources/content.php

  • Get content type details.
  • Visibility: public
  • Is abstract?: Yes
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$zone ?ID_TEXT No No Null N/A N/A The zone to link through to (null: autodetect)
$get_extended_data boolean No No False N/A N/A Populate additional data that is somewhat costly to compute (add_url, archive_url)

Returns

  • Map of content-type info (null: disabled)
  • Type: ?array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get content type details.
 *
 * @param  ?ID_TEXT $zone The zone to link through to (null: autodetect)
 * @param  boolean $get_extended_data Populate additional data that is somewhat costly to compute (add_url, archive_url)
 * @return ?array Map of content-type info (null: disabled)
 */

abstract public function info(?string $zone = null, bool $get_extended_data = false) : ?array