Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
PHP Fatal error: Declaration of Drupal\devel\Plugin\Block\\DevelExecutePHP::access() must be compatible with Drupal\Core\Block\BlockPluginInterface::access(Drupal\Core\Session\AccountInterface $account, $return_as_object = false)
after #2342057: Expand BlockPluginInterface to take into account $return_as_object
Comment | File | Size | Author |
---|---|---|---|
#1 | devel-execute-php-block-2413763-1.patch | 677 bytes | willzyx |
Comments
Comment #1
willzyx CreditAttribution: willzyx commentedComment #3
willzyx CreditAttribution: willzyx commentedPatch at #1 had a wrong approach. Removed
access
method and usedblockAccess
method to determine whether the block should be shown.