You are here

public function Action::setPlugin in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Entity/Action.php \Drupal\system\Entity\Action::setPlugin()

File

core/modules/system/src/Entity/Action.php, line 111
Contains \Drupal\system\Entity\Action.

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);
}