Esempio n. 1
0
 /**
  * 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));
 }
Esempio n. 2
0
 /**
  * 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']);
     });
 }