protected function RoleSplitFilter::isManagedRole in Config Role Split 8
Return whether the configuration is a managed role that needs filtering.
Parameters
string $name: The name of the config to check.
Return value
bool Whether the config is a role that is managed by this filter.
4 calls to RoleSplitFilter::isManagedRole()
- RoleSplitFilter::filterDelete in src/
Plugin/ ConfigFilter/ RoleSplitFilter.php - RoleSplitFilter::filterRead in src/
Plugin/ ConfigFilter/ RoleSplitFilter.php - RoleSplitFilter::filterReadMultiple in src/
Plugin/ ConfigFilter/ RoleSplitFilter.php - RoleSplitFilter::filterWrite in src/
Plugin/ ConfigFilter/ RoleSplitFilter.php
File
- src/
Plugin/ ConfigFilter/ RoleSplitFilter.php, line 132
Class
- RoleSplitFilter
- Provides a RoleSplitFilter.
Namespace
Drupal\config_role_split\Plugin\ConfigFilterCode
protected function isManagedRole($name) {
if (strpos($name, 'user.role.') === 0) {
if ($this
->getPermissions(str_replace('user.role.', '', $name))) {
return TRUE;
}
}
return FALSE;
}