Documentation

CatalogItemThemeHooks
in package

Theme hook implementations for ilms_catalg.

Table of Contents

Properties

$bundleInfo  : EntityTypeBundleInfoInterface

Methods

__construct()  : mixed
preprocessCatalogItem()  : mixed
Prepares variables for catalog item templates.
theme()  : mixed
Implements hook_theme().
themeSuggestionsCatalogItemAlter()  : mixed
Implements theme_suggestions_HOOK_alter().
viewsViewExpandableTableAlter()  : mixed
Implements theme_suggestions_HOOK_alter().

Properties

Methods

__construct()

public __construct(EntityTypeBundleInfoInterface $bundleInfo) : mixed
Parameters
$bundleInfo : EntityTypeBundleInfoInterface

preprocessCatalogItem()

Prepares variables for catalog item templates.

public preprocessCatalogItem(array<string|int, mixed> &$variables) : mixed
Parameters
$variables : array<string|int, mixed>

An associative array containing:

  • elements: An array of elements to display in view mode.
  • catalog_item: The catalog item object.
  • view_mode: View mode; e.g., 'full'.

theme()

Implements hook_theme().

public theme(array<string|int, mixed> $existing, string $type, string $theme, string $path) : mixed

Various themes in use by the catalog.

Parameters
$existing : array<string|int, mixed>

An array of existing implementations that be may be used for override purposes.

$type : string

The type of object using this hook.

$theme : string

The actual name of the theme, module, etc using this hook.

$path : string

The path to the theme or module.

Attributes
#[Hook]
'theme'

themeSuggestionsCatalogItemAlter()

Implements theme_suggestions_HOOK_alter().

public themeSuggestionsCatalogItemAlter(array<string|int, mixed> &$suggestions, array<string|int, mixed> $variables) : mixed
Parameters
$suggestions : array<string|int, mixed>

The array of suggestions to modify.

$variables : array<string|int, mixed>

A list of available arrays to use.

Attributes
#[Hook]
'theme_suggestions_catalog_item_alter'

viewsViewExpandableTableAlter()

Implements theme_suggestions_HOOK_alter().

public viewsViewExpandableTableAlter(array<string|int, mixed> &$suggestions, array<string|int, mixed> $variables) : mixed
Parameters
$suggestions : array<string|int, mixed>

The array of suggestions to modify.

$variables : array<string|int, mixed>

A list of available arrays to use.

Attributes
#[Hook]
'theme_suggestions_views_view_expandabletable_alter'

        
On this page

Search results