Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removes dependency with ext:form as it may be not installed #1

Merged
merged 1 commit into from
Mar 18, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Classes/Form/Elements/AnimationPreviewField.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
use TYPO3\CMS\Core\Utility\ArrayUtility;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Core\Utility\StringUtility;
use TYPO3\CMS\Form\Service\TranslationService;
use TYPO3\CMS\Extbase\Utility\LocalizationUtility;

/**
* Class AnimationPreviewField
Expand All @@ -31,11 +31,11 @@ class AnimationPreviewField implements NodeInterface
{
/** @var array $data*/
protected $data;

/** @var NodeFactory $nodeFactory */
protected $nodeFactory;

/** @var TranslationService $translationService */
/** @var LocalizationUtility $translationService */
protected $translationService;

/**
Expand Down Expand Up @@ -64,7 +64,7 @@ public function __construct(NodeFactory $nodeFactory, array $data)

/**
* Main render method
*
*
* @return array
* @throws \TYPO3\CMS\Backend\Form\Exception
*/
Expand All @@ -74,7 +74,7 @@ public function render()
$config = $parameterArray['fieldConf']['config'];
$fieldInformationResult = $this->renderFieldInformation();
$fieldInformationHtml = $fieldInformationResult['html'];

// Initialization:
$selectId = StringUtility::getUniqueId('tceforms-select-');
$selectItems = $parameterArray['fieldConf']['config']['items'];
Expand Down