/** * Returns list of roles with marker indicating whether role specific metadata exists * * @param MetaDataImplementationInterface $implementation * @return array */ protected function getAvailableRoleList(MetaDataImplementationInterface $implementation) { return MBHelper::getAvailableRoleList($this->getHasMetaCallback($implementation)); }
/** * Returns list of roles with marker indicating whether role specific metadata for the given dropdown field exists * * @param string $name Dropdown field name * @return array */ protected function getAvailableRoleList($name) { $manager = MetaDataManager::getManager(); return MBHelper::getAvailableRoleList(function (array $params) use($manager, $name) { return $manager->hasEditableDropdownFilter($name, $params['role']); }); }