search_api-8.x-1.15/src/Event/MappingViewsFieldHandlersEvent.php
src/Event/MappingViewsFieldHandlersEvent.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | <?php namespace Drupal\search_api\Event; use Symfony\Component\EventDispatcher\Event; /** * Wraps a mapping Views field handlers event. */ final class MappingViewsFieldHandlersEvent extends Event { /** * The Views field handler mapping. * * @var array */ protected $fieldHandlerMapping ; /** * Constructs a new class instance. * * @param array $handlerMapping * The Views field handler mapping. */ public function __construct( array & $handlerMapping ) { $this ->fieldHandlerMapping = & $handlerMapping ; } /** * Retrieves a reference to the Views field handler mapping. * * @return array * An associative array with property data types as the keys and Views field * handler definitions as the values (that is, just the inner "field" * portion of Views data definition items). In some cases the value might * also be NULL instead, to indicate that properties of this type shouldn't * have field handlers. The data types in the keys might also contain * asterisks (*) as wildcard characters. Data types with wildcards will be * matched only if no specific type exists, and longer type patterns will be * tried before shorter ones. The "*" mapping therefore is the default if no * other match could be found. */ public function &getFieldHandlerMapping() { return $this ->fieldHandlerMapping; } } |