You are here

public function node::mayEditEntity in Fasttoggle 8.2

Access.

Parameters

$object: The object for which update access is being checked.

Return value

AccessResult AccessResult (cacheability info and the outcome).

Overrides AbstractSettingObject::mayEditEntity

File

src/Plugin/SettingObject/node.php, line 87
Fasttoggle Managed Node

Class

node
Class for managing nodes.

Namespace

Drupal\fasttoggle\Plugin\SettingObject

Code

public function mayEditEntity() {
  return AccessResult::allowedIf($this->object
    ->access('update'))
    ->addCacheableDependency($this->object);
}