Elgg
Version 6.1
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
9
class
TagsSearchFieldsHandler
{
10
18
public
function
__invoke
(\
Elgg
\
Event
$event) {
19
20
$value
= (array) $event->getValue();
21
22
$defaults
= [
23
'metadata'
=> [],
24
];
25
26
$value
= array_merge(
$defaults
,
$value
);
27
28
$value
[
'metadata'
] = array_merge(
$value
[
'metadata'
], [
'tags'
]);
29
30
return
$value
;
31
}
32
}
Elgg\Search
Definition:
GroupSearchFieldsHandler.php:3
$defaults
$defaults
Generic entity header upload helper.
Definition:
header.php:6
$value
$value
Definition:
generic.php:51
Elgg\Search\TagsSearchFieldsHandler\__invoke
__invoke(\Elgg\Event $event)
Populate default search fields for entities.
Definition:
TagsSearchFieldsHandler.php:18
Elgg
Definition:
ActionsService.php:3
Elgg\Search\TagsSearchFieldsHandler
Definition:
TagsSearchFieldsHandler.php:9
Elgg\Event
Models an event passed to event handlers.
Definition:
Event.php:11
Generated on Wed Dec 4 2024 00:00:21 for Elgg by
1.8.11