// permission exists, then we add that below. The access manager requires
// that ALL access checks must grant access, so this still results in
// correct behavior.
$requirements =
[ '_access' => 'TRUE',
];
// Only specify route requirements if the default permission exists. For any
// more advanced route definition, resource plugins extending this base
// class must override this method.
$permission = "restful
$lower_method $this->pluginId";
if (isset($this->
permissions()[$permission])) { $requirements['_permission'
] =
$permission;
} return $requirements;
}}