function Action::setPlugin

Same name in other branches
  1. 9 core/modules/system/src/Entity/Action.php \Drupal\system\Entity\Action::setPlugin()
  2. 10 core/modules/system/src/Entity/Action.php \Drupal\system\Entity\Action::setPlugin()
  3. 11.x core/modules/system/src/Entity/Action.php \Drupal\system\Entity\Action::setPlugin()

File

core/modules/system/src/Entity/Action.php, line 113

Class

Action
Defines the configured action entity.

Namespace

Drupal\system\Entity

Code

public function setPlugin($plugin_id) {
    $this->plugin = $plugin_id;
    $this->getPluginCollection()
        ->addInstanceId($plugin_id);
}

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