| @@ 583-596 (lines=14) @@ | ||
| 580 | * |
|
| 581 | * @return array The 'getImgResource' hook objects (if any) |
|
| 582 | */ |
|
| 583 | protected function getGetImgResourceHookObjects() |
|
| 584 | { |
|
| 585 | if (!isset($this->getImgResourceHookObjects)) { |
|
| 586 | $this->getImgResourceHookObjects = []; |
|
| 587 | foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_content.php']['getImgResource'] ?? [] as $className) { |
|
| 588 | $hookObject = GeneralUtility::makeInstance($className); |
|
| 589 | if (!$hookObject instanceof ContentObjectGetImageResourceHookInterface) { |
|
| 590 | throw new \UnexpectedValueException('$hookObject must implement interface ' . ContentObjectGetImageResourceHookInterface::class, 1218636383); |
|
| 591 | } |
|
| 592 | $this->getImgResourceHookObjects[] = $hookObject; |
|
| 593 | } |
|
| 594 | } |
|
| 595 | return $this->getImgResourceHookObjects; |
|
| 596 | } |
|
| 597 | ||
| 598 | /** |
|
| 599 | * Sets the internal variable parentRecord with information about current record. |
|
| @@ 914-927 (lines=14) @@ | ||
| 911 | * @return array The 'checkModifyAccessList' hook objects (if any) |
|
| 912 | * @throws \UnexpectedValueException |
|
| 913 | */ |
|
| 914 | protected function getCheckModifyAccessListHookObjects() |
|
| 915 | { |
|
| 916 | if (!isset($this->checkModifyAccessListHookObjects)) { |
|
| 917 | $this->checkModifyAccessListHookObjects = []; |
|
| 918 | foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['checkModifyAccessList'] ?? [] as $className) { |
|
| 919 | $hookObject = GeneralUtility::makeInstance($className); |
|
| 920 | if (!$hookObject instanceof DataHandlerCheckModifyAccessListHookInterface) { |
|
| 921 | throw new \UnexpectedValueException($className . ' must implement interface ' . DataHandlerCheckModifyAccessListHookInterface::class, 1251892472); |
|
| 922 | } |
|
| 923 | $this->checkModifyAccessListHookObjects[] = $hookObject; |
|
| 924 | } |
|
| 925 | } |
|
| 926 | return $this->checkModifyAccessListHookObjects; |
|
| 927 | } |
|
| 928 | ||
| 929 | /********************************************* |
|
| 930 | * |
|