1 | <?php |
||
37 | class InitializeConnectionProvider extends AbstractProvider |
||
38 | { |
||
39 | /** |
||
40 | * @var array |
||
41 | */ |
||
42 | protected $itemsConfiguration = [ |
||
43 | 'solrconnection' => [ |
||
44 | 'type' => 'item', |
||
45 | 'label' => 'Initialize Solr Connections', |
||
46 | 'iconIdentifier' => 'extensions-solr-module-initsolrconnection', |
||
47 | 'callbackAction' => 'initializeSolrConnections' |
||
48 | ] |
||
49 | ]; |
||
50 | |||
51 | /** |
||
52 | * This needs to be lower than priority of the RecordProvider |
||
53 | * |
||
54 | * @return int |
||
55 | */ |
||
56 | public function getPriority(): int |
||
60 | |||
61 | /** |
||
62 | * Whether this provider can handle given request (usually a check based on table, uid and context) |
||
63 | * |
||
64 | * @return bool |
||
65 | */ |
||
66 | public function canHandle(): bool |
||
80 | |||
81 | /** |
||
82 | * Registers custom JS module with item onclick behaviour |
||
83 | * |
||
84 | * @param string $itemName |
||
85 | * @return array |
||
86 | */ |
||
87 | protected function getAdditionalAttributes(string $itemName): array |
||
91 | } |
||
92 |