CatalogItemViewsHooks
in package
uses
StringTranslationTrait
Views hook implementations for ilms_catalg.
Table of Contents
Properties
- $entityTypeManager : EntityTypeManagerInterface
- $requestStack : RequestStack
- $routeMatch : RouteMatchInterface
Methods
- __construct() : mixed
- viewsDataAlter() : void
- Implements hook_views_data_alter().
- viewsPreView() : mixed
- Implements hook_views_pre_view().
Properties
$entityTypeManager read-only
protected
EntityTypeManagerInterface
$entityTypeManager
$requestStack read-only
protected
RequestStack
$requestStack
$routeMatch read-only
protected
RouteMatchInterface
$routeMatch
Methods
__construct()
public
__construct(RouteMatchInterface $routeMatch, RequestStack $requestStack, EntityTypeManagerInterface $entityTypeManager) : mixed
Parameters
- $routeMatch : RouteMatchInterface
- $requestStack : RequestStack
- $entityTypeManager : EntityTypeManagerInterface
viewsDataAlter()
Implements hook_views_data_alter().
public
viewsDataAlter(array<string|int, mixed> &$data) : void
Exposes new fields for views.
Parameters
- $data : array<string|int, mixed>
-
The array of views data to modify.
Attributes
- #[Hook]
- 'views_data_alter'
viewsPreView()
Implements hook_views_pre_view().
public
viewsPreView(ViewExecutable $view, string $display_id, array<string|int, mixed> &$args) : mixed
Passes the parent ID into various views for the catalog.
Parameters
- $view : ViewExecutable
-
The view executable object to use.
- $display_id : string
-
The display id currently being rendered.
- $args : array<string|int, mixed>
-
The list of contextual arguments to modify.
Attributes
- #[Hook]
- 'views_pre_view'