/** * {@inheritdoc} */ public function access(AccountInterface $account) { $bundles = $this->entityManager->getBundleInfo($this->getEntityType()); if ($this->options['expose']['hide_single_bundle'] && count($bundles) <= 1) { return FALSE; } return parent::access($account); }