function EntityMethod::__construct

Same name and namespace in other branches
  1. 10 core/lib/Drupal/Core/Config/Action/Plugin/ConfigAction/EntityMethod.php \Drupal\Core\Config\Action\Plugin\ConfigAction\EntityMethod::__construct()

Constructs a EntityMethod object.

Parameters

string $pluginId: The config action plugin ID.

\Drupal\Core\Config\ConfigManagerInterface $configManager: The config manager.

string $method: The method to call on the config entity.

\Drupal\Core\Config\Action\Exists $exists: Determines behavior of action depending on entity existence.

int $numberOfParams: The number of parameters the method has.

int $numberOfRequiredParams: The number of required parameters the method has.

bool $pluralized: Determines whether an array maps to multiple calls.

File

core/lib/Drupal/Core/Config/Action/Plugin/ConfigAction/EntityMethod.php, line 63

Class

EntityMethod
Makes config entity methods with the ActionMethod attribute into actions.

Namespace

Drupal\Core\Config\Action\Plugin\ConfigAction

Code

public function __construct(string $pluginId, ConfigManagerInterface $configManager, string $method, Exists $exists, int $numberOfParams, int $numberOfRequiredParams, bool $pluralized) {
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.