Changing to sqlite and resetting,
This commit is contained in:
@@ -20,7 +20,6 @@ final class CopyrightBlock extends BlockBase {
|
||||
*/
|
||||
public function build(): array {
|
||||
$year = date('Y');
|
||||
"<p>© Dan Chadwick {$year}</p>";
|
||||
$build = [
|
||||
'#markup' => "<p>© Dan Chadwick {$year}</p>",
|
||||
];
|
||||
|
||||
@@ -30,6 +30,7 @@ class KernelRequestNodePathCheck implements EventSubscriberInterface {
|
||||
* React to a config object being saved.
|
||||
*/
|
||||
public function onRequest(RequestEvent $event): void {
|
||||
return;
|
||||
$user = \Drupal::currentUser();
|
||||
$user_roles = $user->getRoles();
|
||||
if (!in_array('anonymous', $user_roles)) {
|
||||
|
||||
Reference in New Issue
Block a user