[ 'name' => _t( __CLASS__ . '.EditPermissionLabel', 'Manage a test object' ), 'category' => _t( __CLASS__ . '.Category', 'Test Data Object' ), ], ]; } protected function canView($member = null) { return Permission::check('TEST_DATAOBJECT_EDIT', 'any', $member); } protected function canEdit($member = null) { return Permission::check('TEST_DATAOBJECT_EDIT', 'any', $member); } protected function canDelete($member = null) { return Permission::check('TEST_DATAOBJECT_EDIT', 'any', $member); } protected function canCreate($member = null, $context = []) { return Permission::check('TEST_DATAOBJECT_EDIT', 'any', $member); } }