upgrade
This commit is contained in:
34
main/inc/lib/hook/HookDocumentItemView.php
Normal file
34
main/inc/lib/hook/HookDocumentItemView.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
/* For licensing terms, see /license.txt */
|
||||
|
||||
/**
|
||||
* Class HookDocumentItemView.
|
||||
*/
|
||||
class HookDocumentItemView extends HookEvent implements HookDocumentItemViewEventInterface
|
||||
{
|
||||
/**
|
||||
* HookDocumentItemView constructor.
|
||||
*
|
||||
* @throws Exception
|
||||
*/
|
||||
protected function __construct()
|
||||
{
|
||||
parent::__construct('HookDocumentItemView');
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function notifyDocumentItemView(): array
|
||||
{
|
||||
$tools = [];
|
||||
|
||||
/** @var HookDocumentItemViewObserverInterface $observer */
|
||||
foreach ($this->observers as $observer) {
|
||||
$tools[] = $observer->notifyDocumentItemView($this);
|
||||
}
|
||||
|
||||
return $tools;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user