Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. EntityMethod.php

function 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) {
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal