You are here

public function SearchApiAlterCallbackInterface::propertyInfo in Search API 7

Declare the properties that are added to items by this callback.

If one of the specified properties already exists for an entity it will be overridden, so keep a clear namespace by prefixing the properties with the module name if this is not desired.

CAUTION: Since this method is used when calling SearchApiIndex::getFields(), calling that method from inside propertyInfo() will lead to a recursion and should therefore be avoided.

Return value

array Information about all additional properties, as specified by hook_entity_property_info() (only the inner "properties" array).

See also

hook_entity_property_info()

1 method overrides SearchApiAlterCallbackInterface::propertyInfo()
SearchApiAbstractAlterCallback::propertyInfo in includes/callback.inc
Implements SearchApiAlterCallbackInterface::propertyInfo().

File

includes/callback.inc, line 112
Contains base definitions for data alterations.

Class

SearchApiAlterCallbackInterface
Interface representing a Search API data-alter callback.

Code

public function propertyInfo();