ManagedRolePermissions.php in farmOS 2.x
File
modules/core/role/src/ManagedRolePermissions.php
View source
<?php
namespace Drupal\farm_role;
use Drupal\Core\Plugin\PluginBase;
class ManagedRolePermissions extends PluginBase implements ManagedRolePermissionsInterface {
public function getDefaultPermissions() {
return (array) $this->pluginDefinition['default_permissions'];
}
public function getConfigPermissions() {
return (array) $this->pluginDefinition['config_permissions'];
}
public function getPermissionCallbacks() {
return (array) $this->pluginDefinition['permission_callbacks'];
}
}