protected function RoleSplitFilter::getPluginProperty in Config Role Split 8
Get the plugin property from the storage or the plugin configuration.
Parameters
string $name: The property name to get.
mixed $default: The default value.
Return value
mixed The configuration property
5 calls to RoleSplitFilter::getPluginProperty()
- RoleSplitFilter::filterDelete in src/
Plugin/ ConfigFilter/ RoleSplitFilter.php - RoleSplitFilter::filterDeleteAll in src/
Plugin/ ConfigFilter/ RoleSplitFilter.php - RoleSplitFilter::filterRead in src/
Plugin/ ConfigFilter/ RoleSplitFilter.php - RoleSplitFilter::filterWrite in src/
Plugin/ ConfigFilter/ RoleSplitFilter.php - RoleSplitFilter::getPermissions in src/
Plugin/ ConfigFilter/ RoleSplitFilter.php - Get the permissions for a given role id.
File
- src/
Plugin/ ConfigFilter/ RoleSplitFilter.php, line 170
Class
- RoleSplitFilter
- Provides a RoleSplitFilter.
Namespace
Drupal\config_role_split\Plugin\ConfigFilterCode
protected function getPluginProperty($name, $default) {
// Try first reading from the filtered storage.
if ($this
->getFilteredStorage()) {
$config = $this
->getFilteredStorage()
->read($this->configuration['config_name']);
if (is_array($config) && array_key_exists($name, $config)) {
// This ensures that the deployment will work,
// but it makes overrides impossible.
return $config[$name];
}
}
// Otherwise return the value passed as plugin configuration.
if (isset($this->configuration[$name])) {
return $this->configuration[$name];
}
return $default;
}