Create a component for custom field

[MAILPOET-3220]
This commit is contained in:
Pavel Dohnal
2021-05-12 14:01:26 +02:00
committed by Veljko V
parent 0df0dc203a
commit 75c22f5f5f
6 changed files with 55 additions and 2 deletions

View File

@ -89,7 +89,7 @@ class Segments {
$data['subscriber_count'] = $this->subscribersFeature->getSubscribersCount();
$data['has_premium_support'] = $this->subscribersFeature->hasPremiumSupport();
$data['mss_key_invalid'] = ($this->servicesChecker->isMailPoetAPIKeyValid() === false);
$customFields = $this->customFieldsRepository->findAll();
$customFields = $this->customFieldsRepository->findBy([], ['name' => 'asc']);
$data['custom_fields'] = $this->customFieldsResponseBuilder->buildBatch($customFields);
$wpRoles = $this->wp->getEditableRoles();