public function __construct(array $roles, $name, $callback, $description, $dataType) { parent::__construct($name, $callback, $description, $dataType); $this->roles = $roles; }
/** * {@inheritdoc} */ public function rolesForFilter(Filter $filter, $pathPrefix) { $roles = [$this->roleName($pathPrefix, 'filter', $filter->getName()), $this->roleName($pathPrefix, 'filter', 'all')]; return $this->makeRoles($roles); }