Elgg
Version 4.3
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
engine
classes
Elgg
Search
TagsSearchFieldsHandler.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Elgg\Search
;
4
5
use
Elgg\Hook
;
6
11
class
TagsSearchFieldsHandler
{
12
22
public
function
__invoke
(
Hook
$hook) {
23
24
$value
= (array) $hook->
getValue
();
25
26
$defaults
= [
27
'metadata'
=> [],
28
];
29
30
$value
= array_merge(
$defaults
,
$value
);
31
32
$value
[
'metadata'
] = array_merge(
$value
[
'metadata'
], [
'tags'
]);
33
34
return
$value
;
35
}
36
}
Elgg\Search
Definition:
GroupSearchFieldsHandler.php:3
$defaults
$defaults
Definition:
autocomplete.php:24
Hook
$value
$value
Definition:
generic.php:51
Elgg\Hook\getValue
getValue()
Get the current value of the hook.
Elgg\Hook
Models an event passed to hook handlers.
Definition:
Hook.php:11
Elgg\Search\TagsSearchFieldsHandler\__invoke
__invoke(Hook $hook)
Populate default search fields for entities.
Definition:
TagsSearchFieldsHandler.php:22
Elgg\Search\TagsSearchFieldsHandler
Definition:
TagsSearchFieldsHandler.php:11
Generated on Thu Jan 26 2023 00:00:23 for Elgg by
1.8.11