protected function listEntities(PagerInterface $pager = null, array $query_params = [], string $key_provider = 'id'): array
    {
        /** @var \Apigee\Edge\Api\Management\Entity\OrganizationInterface $organization */
        $organization = $this->getOrganizationController()->load($this->getOrganisationName());
        $isCpsEnabled = $organization->getPropertyValue('features.isCpsEnabled');

        if ($isCpsEnabled) {
            return $this->listEntitiesWithCps($pager, $query_params, $key_provider);
        } else {
            $this->triggerCpsSimulationNotice($pager);

            return $this->listEntitiesWithoutCps($pager, $query_params, $key_provider);
        }
    }
protected function listEntities(PagerInterface $pager = null, array $query_params = [], string $key_provider = 'id'): array
    {
        /** @var \Apigee\Edge\Api\Management\Entity\OrganizationInterface $organization */
        $organization = $this->getOrganizationController()->load($this->getOrganisationName());
        $isCpsEnabled = $organization->getPropertyValue('features.isCpsEnabled');

        if ($isCpsEnabled) {
            return $this->listEntitiesWithCps($pager, $query_params, $key_provider);
        } else {
            $this->triggerCpsSimulationNotice($pager);

            return $this->listEntitiesWithoutCps($pager, $query_params, $key_provider);
        }
    }
protected function listEntities ( PagerInterface $ pager = null , array $ query_params = [ ] , string $ key_provider = 'id' ) : array { /** @var \Apigee\Edge\Api\Management\Entity\OrganizationInterface $organization */ $ organization = $ this -> getOrganizationController ( ) -> load ( $ this -> getOrganisationName ( ) ) ; $ isCpsEnabled = $ organization -> getPropertyValue ( 'features.isCpsEnabled' ) ; if ( $ isCpsEnabled ) { return $ this -> listEntitiesWithCps ( $ pager , $ query_params , $ key_provider ) ; } else { $ this -> triggerCpsSimulationNotice ( $ pager ) ; return $ this -> listEntitiesWithoutCps ( $ pager , $ query_params , $ key_provider ) ; } }
Loads paginated list of entities from Apigee Edge.

@param \Apigee\Edge\Structure\PagerInterface|null $pager
Pager.
@param array $query_params
Additional query parameters.
@param string $key_provider
Getter method on the entity that should provide a unique array key.

@return \Apigee\Edge\Entity\EntityInterface[]
Array of entity objects.
Loads paginated list of entities from Apigee Edge .