PermissionsRoleSpecificForm.php in Filter Permissions 8
File
src/Form/PermissionsRoleSpecificForm.php
View source
<?php
namespace Drupal\filter_perms\Form;
use Drupal\Core\Form\FormStateInterface;
use Drupal\user\RoleInterface;
class PermissionsRoleSpecificForm extends PermissionsForm {
public function buildForm(array $form, FormStateInterface $form_state, RoleInterface $user_role = NULL) {
$this
->saveFilterSettings((array) $user_role
->id(), (array) self::ALL_OPTIONS);
return $this
->redirect('user.admin_permissions');
}
}